Jpp
master_rocky-40-g5f0272dcd
the software that should make you happy
|
Auxiliary class to handle input from file. More...
#include <JProperties.hh>
Public Member Functions | |
JFileReader (JProperties &__properties) | |
JFileReader & | operator= (const std::string &file_name) |
Assignment operator. More... | |
Private Member Functions | |
void | read (const std::string &file_name) |
Read properties from file. More... | |
Private Attributes | |
JProperties & | properties |
Friends | |
std::istream & | operator>> (std::istream &in, JProperties::JFileReader &fileReader) |
Stream input. More... | |
std::ostream & | operator<< (std::ostream &out, const JProperties::JFileReader &fileReader) |
Stream output. More... | |
Auxiliary class to handle input from file.
The assignment of a value will cause the file with the corresponding name to be opened and read. The contents of the file are processed in the same way as any input to the associated JProperties object.
Definition at line 535 of file JProperties.hh.
|
inline |
Definition at line 537 of file JProperties.hh.
|
inline |
Assignment operator.
file_name | file name |
Definition at line 548 of file JProperties.hh.
|
inlineprivate |
Read properties from file.
file_name | file name |
Definition at line 594 of file JProperties.hh.
|
friend |
Stream input.
in | input stream |
fileReader | file reader object |
Definition at line 563 of file JProperties.hh.
|
friend |
Stream output.
out | output stream |
fileReader | file reader |
Definition at line 582 of file JProperties.hh.
|
private |
Definition at line 612 of file JProperties.hh.