|
Simpatico
v1.10
|
A UnitTest with a built-in input file.
Definition at line 15 of file ParamFileTest.h.
#include <ParamFileTest.h>
Public Member Functions | |
| ParamFileTest () | |
| Constructor. More... | |
| ~ParamFileTest () | |
| Destructor. More... | |
| virtual void | tearDown () |
| Close the input file. More... | |
| void | openFile (const char *fileName) |
| Open the input file. More... | |
| void | closeFile () |
| Close the input file. More... | |
| std::ifstream & | file () |
| Returns input file by reference. More... | |
Public Member Functions inherited from UnitTest | |
| UnitTest () | |
| Constructor. More... | |
| virtual | ~UnitTest () |
| Destructor. More... | |
| virtual void | setUp () |
| Set up before each test method (empty default implementation). More... | |
| void | setVerbose (int verbose) |
| Set verbosity level. More... | |
| void | setFilePrefix (const std::string &prefix) |
| Set file prefix. More... | |
| const std::string & | filePrefix () |
| Get file prefix string. More... | |
| bool | isIoProcessor () const |
| Should this processor read and write to file? More... | |
Additional Inherited Members | |
Protected Member Functions inherited from UnitTest | |
| void | printMethod (const char *methodName) |
| Write name of a class method, iff ioProcessor. More... | |
| void | printEndl () |
| Write carriage return, iff isIoProcessor. More... | |
| virtual void | endMarker () |
| Print a line of hashes, iff isIoProcessor. More... | |
| void | openInputFile (const std::string &name, std::ifstream &in) const |
| Open C++ input file ifstream. More... | |
| void | openOutputFile (const std::string &name, std::ofstream &out) const |
| Open C++ output file ofstream. More... | |
| FILE * | openFile (const std::string &name, const char *mode) const |
| Open C file handle with specified mode. More... | |
| int | verbose () const |
| Return integer verbosity level (0 == silent). More... | |
Static Protected Member Functions inherited from UnitTest | |
| static bool | eq (int s1, int s2) |
| Return true if two integers are equal. More... | |
| static bool | eq (double s1, double s2) |
| Return true if two double precision floats are equal. More... | |
|
inline |
Constructor.
Definition at line 23 of file ParamFileTest.h.
|
inline |
|
inlinevirtual |
Close the input file.
Reimplemented from UnitTest.
Definition at line 36 of file ParamFileTest.h.
References closeFile().
|
inline |
Open the input file.
Definition at line 42 of file ParamFileTest.h.
References UnitTest::isIoProcessor(), and UnitTest::openInputFile().
|
inline |
Close the input file.
Definition at line 52 of file ParamFileTest.h.
Referenced by tearDown(), and ~ParamFileTest().
|
inline |
Returns input file by reference.
Definition at line 58 of file ParamFileTest.h.
1.8.11