SOFA API  b3f2f2a4
Open source framework for multi-physics simuation
sofa::helper::logging::FileInfo Struct Reference

#include <FileInfo.h>

Inheritance diagram for sofa::helper::logging::FileInfo:

Detailed Description

To keep a trace (file,line) from where the message have been created The filename must be a valid pointer throughoug the message processing If this cannot be guaranteed then use the FileInfoOwningFilename class instead.

Public Attributes

const charfilename {nullptr}
 
int line {0}
 

Public Member Functions

 FileInfo (const char *f, int l)
 

Protected Member Functions

 FileInfo ()
 

Attribute details

◆ filename

const char* sofa::helper::logging::FileInfo::filename {nullptr}

◆ line

int sofa::helper::logging::FileInfo::line {0}

Constructor details

◆ FileInfo() [1/2]

sofa::helper::logging::FileInfo::FileInfo ( const char f,
int  l 
)
inline

◆ FileInfo() [2/2]

sofa::helper::logging::FileInfo::FileInfo ( )
inlineprotected