ROSE 0.11.145.192
Public Member Functions | Public Attributes | List of all members
Rose::StringUtility::StringWithLineNumber Struct Reference

Description

String with source location information.

The location information is a file name string (empty means generated code) and a line number. Line numbers are one-origin; the first line of a file is numbered 1, not 0.

Definition at line 40 of file FileUtility.h.

#include <util/stringSupport/FileUtility.h>

Collaboration diagram for Rose::StringUtility::StringWithLineNumber:
Collaboration graph
[legend]

Public Member Functions

 StringWithLineNumber (const std::string &str, const std::string &filename, unsigned int line)
 
ROSE_UTIL_API std::string toString () const
 

Public Attributes

std::string str
 
std::string filename
 
unsigned int line
 

Constructor & Destructor Documentation

◆ StringWithLineNumber()

Rose::StringUtility::StringWithLineNumber::StringWithLineNumber ( const std::string &  str,
const std::string &  filename,
unsigned int  line 
)
inline

Definition at line 45 of file FileUtility.h.

Member Data Documentation

◆ str

std::string Rose::StringUtility::StringWithLineNumber::str

Definition at line 41 of file FileUtility.h.

◆ filename

std::string Rose::StringUtility::StringWithLineNumber::filename

Definition at line 42 of file FileUtility.h.

◆ line

unsigned int Rose::StringUtility::StringWithLineNumber::line

Definition at line 43 of file FileUtility.h.


The documentation for this struct was generated from the following file: