ewmscp  ..
Public Member Functions | List of all members
idHandler Class Reference
Inheritance diagram for idHandler:
[legend]
Collaboration diagram for idHandler:
[legend]

Public Member Functions

 idHandler (char shortName, const std::string &aName, const std::string &aExplanation)
 
void print (const std::string &fsname, const struct statvfs &stat, bool printAll) override
 
- Public Member Functions inherited from fieldHandlerTpl< unsigned long >
 fieldHandlerTpl (decltype(field) aField, char shortName, const std::string &aName, const std::string &aExplanation)
 
void print (const std::string &fsname, const struct statvfs &stat, bool printAll) override
 
- Public Member Functions inherited from fieldHandlerBase
 fieldHandlerBase (char shortName, const std::string &aName, const std::string &aExplanation)
 

Additional Inherited Members

- Public Attributes inherited from fieldHandlerBase
options::single< bool > opt
 
- Protected Attributes inherited from fieldHandlerBase
std::string fieldName
 
std::string explanation
 

Detailed Description

Definition at line 48 of file statvfs.cpp.

Constructor & Destructor Documentation

◆ idHandler()

idHandler::idHandler ( char  shortName,
const std::string &  aName,
const std::string &  aExplanation 
)
inline

Definition at line 50 of file statvfs.cpp.

50 : fieldHandlerTpl<unsigned long>(&statvfs::f_fsid, shortName, aName, aExplanation) {};

Member Function Documentation

◆ print()

void idHandler::print ( const std::string &  fsname,
const struct statvfs &  stat,
bool  printAll 
)
inlineoverridevirtual

Implements fieldHandlerBase.

Definition at line 51 of file statvfs.cpp.

53  {
54  std::cout << std::hex;
55  fieldHandlerTpl::print(fsname, stat, printAll);
56  std::cout << std::dec;
57  }

References fieldHandlerTpl< T >::print().

Here is the call graph for this function:

The documentation for this class was generated from the following file:
fieldHandlerTpl< unsigned long >
fieldHandlerTpl::print
void print(const std::string &fsname, const struct statvfs &stat, bool printAll) override
Definition: statvfs.cpp:35