The Gaudi Framework  master (37c0b60a)
Gaudi::Parsers::Position Class Referencefinal

#include </builds/gaudi/Gaudi/GaudiCoreSvc/src/JobOptionsSvc/Position.h>

Collaboration diagram for Gaudi::Parsers::Position:

Public Member Functions

 Position ()=default
 
 Position (std::string filename, unsigned line, unsigned column)
 
const std::stringfilename () const
 
unsigned line () const
 
unsigned column () const
 
void set_filename (std::string filename)
 
std::string ToString () const
 
bool Exists () const
 

Private Attributes

std::string filename_
 
unsigned line_ = 0
 
unsigned column_ = 0
 

Detailed Description

Definition at line 23 of file Position.h.

Constructor & Destructor Documentation

◆ Position() [1/2]

Gaudi::Parsers::Position::Position ( )
default

◆ Position() [2/2]

Gaudi::Parsers::Position::Position ( std::string  filename,
unsigned  line,
unsigned  column 
)
inline

Definition at line 26 of file Position.h.

Member Function Documentation

◆ column()

unsigned Gaudi::Parsers::Position::column ( ) const
inline

Definition at line 30 of file Position.h.

30 { return column_; }

◆ Exists()

bool Gaudi::Parsers::Position::Exists ( ) const
inline

Definition at line 33 of file Position.h.

33 { return line_ != 0; }

◆ filename()

const std::string& Gaudi::Parsers::Position::filename ( ) const
inline

Definition at line 28 of file Position.h.

28 { return filename_; }

◆ line()

unsigned Gaudi::Parsers::Position::line ( ) const
inline

Definition at line 29 of file Position.h.

29 { return line_; }

◆ set_filename()

void Gaudi::Parsers::Position::set_filename ( std::string  filename)
inline

Definition at line 31 of file Position.h.

◆ ToString()

std::string Gaudi::Parsers::Position::ToString ( ) const

Definition at line 14 of file Position.cpp.

14  {
15  return fmt::format( "{}: ({}, {})", filename_, line_, column_ );
16 }

Member Data Documentation

◆ column_

unsigned Gaudi::Parsers::Position::column_ = 0
private

Definition at line 38 of file Position.h.

◆ filename_

std::string Gaudi::Parsers::Position::filename_
private

Definition at line 36 of file Position.h.

◆ line_

unsigned Gaudi::Parsers::Position::line_ = 0
private

Definition at line 37 of file Position.h.


The documentation for this class was generated from the following files:
std::move
T move(T... args)
Gaudi::Parsers::Position::filename
const std::string & filename() const
Definition: Position.h:28
Gaudi::Parsers::Position::column
unsigned column() const
Definition: Position.h:30
Gaudi::Parsers::Position::line
unsigned line() const
Definition: Position.h:29
Gaudi::Parsers::Position::column_
unsigned column_
Definition: Position.h:38
Gaudi::Parsers::Position::line_
unsigned line_
Definition: Position.h:37
format
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
Definition: MsgStream.cpp:119
Gaudi::Parsers::Position::filename_
std::string filename_
Definition: Position.h:36