Base functionality common to reader and writer classes. More...
#include <ccmBase.H>

Public Member Functions | |
| base (const base &)=delete | |
| No copy construct. | |
| void | operator= (const base &)=delete |
| No copy assignment. | |
| base () | |
| Default construct. Initializes the global-state. | |
| ~base () | |
| Destructor: close file. | |
| bool | close () |
| Explicitly close the file and terminate ccmio access. | |
Protected Member Functions | |
| bool | assertNoError (const char *msg) const |
| check global state for errors and die as required | |
| bool | assertNoError (const std::string &msg) const |
| check global state for errors and die as required | |
Static Protected Member Functions | |
| static bool | assertNoError (int err, const char *msg) |
| Die with msg if there is an error. | |
| static bool | assertNoError (int err, const std::string &msg) |
| Die with msg if there is an error. | |
Protected Attributes | |
| std::unique_ptr< ccmGlobalState > | globalState_ |
| Maintain overall global states (error, root-node). | |
Base functionality common to reader and writer classes.
|
delete |
No copy construct.
References base().
Referenced by base(), operator=(), reader::reader(), and writer::writer().


| base | ( | ) |
Default construct. Initializes the global-state.
Definition at line 61 of file ccmBase.C.
References globalState_.
| ~base | ( | ) |
|
staticprotected |
Die with msg if there is an error.
Return true if there is no error
Definition at line 27 of file ccmBase.C.
Referenced by reader::reader(), reader::readField(), writer::writeGeometry(), and writer::writeSolution().

|
staticprotected |
|
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 globalState_.
|
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.
References globalState_.
|
delete |
| bool close | ( | ) |
Explicitly close the file and terminate ccmio access.
Return false if it was already closed.
Definition at line 77 of file ccmBase.C.
References globalState_.
Referenced by ~base(), reader::~reader(), and writer::~writer().

|
protected |
Maintain overall global states (error, root-node).
Definition at line 79 of file ccmBase.H.
Referenced by assertNoError(), assertNoError(), base(), close(), reader::reader(), reader::readField(), writer::writeGeometry(), and writer::writeSolution().