Base functionality common to reader and writer classes.
More...
|
| base () |
| Default construct. Initializes the global-state. More...
|
|
| ~base () |
| Destructor: close file. More...
|
|
bool | close () |
| Explicitly close the file and terminate ccmio access. More...
|
|
|
std::unique_ptr< ccmGlobalState > | globalState_ |
| Maintain overall global states (error, root-node) More...
|
|
Base functionality common to reader and writer classes.
- Note
- this class is in development
- any/all of the class names and members may change
- Source files
-
Definition at line 58 of file ccmBase.H.
◆ base() [1/2]
◆ base() [2/2]
Default construct. Initializes the global-state.
Definition at line 61 of file ccmBase.C.
◆ ~base()
Destructor: close file.
Definition at line 69 of file ccmBase.C.
◆ assertNoError() [1/4]
bool assertNoError |
( |
int |
err, |
|
|
const char * |
msg |
|
) |
| |
|
staticprotected |
Die with msg if there is an error.
Return true if there is no error
Definition at line 28 of file ccmBase.C.
Referenced by reader::reader().
◆ assertNoError() [2/4]
bool assertNoError |
( |
int |
err, |
|
|
const std::string & |
msg |
|
) |
| |
|
staticprotected |
Die with msg if there is an error.
Return true if there is no error
Definition at line 38 of file ccmBase.C.
◆ assertNoError() [3/4]
bool assertNoError |
( |
const char * |
msg | ) |
const |
|
protected |
check global state for errors and die as required
Return true if there is no error
Definition at line 47 of file ccmBase.C.
References base::globalState_.
◆ assertNoError() [4/4]
bool assertNoError |
( |
const std::string & |
msg | ) |
const |
|
protected |
check global state for errors and die as required
Return true if there is no error
Definition at line 53 of file ccmBase.C.
◆ operator=()
void operator= |
( |
const base & |
| ) |
|
|
protecteddelete |
◆ close()
Explicitly close the file and terminate ccmio access.
Return false if it was already closed.
Definition at line 77 of file ccmBase.C.
◆ globalState_
std::unique_ptr<ccmGlobalState> globalState_ |
|
protected |
The documentation for this class was generated from the following files: