www.mooseframework.org
Public Member Functions | Protected Attributes | List of all members
FileLineInfo Class Reference

Holds file and line information. More...

#include <FileLineInfo.h>

Public Member Functions

 FileLineInfo ()
 
 FileLineInfo (const std::string &f, int l)
 
bool isValid () const
 
int line () const
 
std::string file () const
 

Protected Attributes

int _line
 
std::string _file
 

Detailed Description

Holds file and line information.

Definition at line 24 of file FileLineInfo.h.

Constructor & Destructor Documentation

FileLineInfo::FileLineInfo ( )

Definition at line 17 of file FileLineInfo.C.

Referenced by FileLineInfoMap::getInfo().

17 : _line(-1) {}
FileLineInfo::FileLineInfo ( const std::string &  f,
int  l 
)

Definition at line 19 of file FileLineInfo.C.

19 : _line(l), _file(f) {}
std::string _file
Definition: FileLineInfo.h:38

Member Function Documentation

std::string FileLineInfo::file ( ) const

Definition at line 34 of file FileLineInfo.C.

Referenced by JsonSyntaxTree::addActionTask(), and JsonSyntaxTree::addParameters().

35 {
36  return _file;
37 }
std::string _file
Definition: FileLineInfo.h:38
bool FileLineInfo::isValid ( ) const
Returns
Whether this holds valid file line information.

Definition at line 22 of file FileLineInfo.C.

Referenced by JsonSyntaxTree::addActionTask(), FileLineInfoMap::addInfo(), and JsonSyntaxTree::addParameters().

23 {
24  return !_file.empty() && _line >= 0;
25 }
std::string _file
Definition: FileLineInfo.h:38
int FileLineInfo::line ( ) const

Definition at line 28 of file FileLineInfo.C.

Referenced by JsonSyntaxTree::addActionTask(), and JsonSyntaxTree::addParameters().

29 {
30  return _line;
31 }

Member Data Documentation

std::string FileLineInfo::_file
protected

Definition at line 38 of file FileLineInfo.h.

Referenced by file(), and isValid().

int FileLineInfo::_line
protected

Definition at line 37 of file FileLineInfo.h.

Referenced by isValid(), and line().


The documentation for this class was generated from the following files: