40 return ccmGlobalState::assertNoError(static_cast<CCMIOError>(err), msg);
47 const std::string& msg
50 return ccmGlobalState::assertNoError(static_cast<CCMIOError>(err), msg);
56 return globalState_->assertNoError(msg);
62 return globalState_->assertNoError(msg);
70 globalState_(new ccmGlobalState)
88 if (CCMIOIsValidEntity(globalState_->root))
90 CCMIOCloseFile(
nullptr, globalState_->root);
92 globalState_.reset(
nullptr);
bool close()
Explicitly close the file and terminate ccmio access.
static bool assertNoError(int err, const char *msg)
Die with msg if there is an error.
~base()
Destructor: close file.
Internal bits for wrapping libccmio - do not use directly.
base()
Default construct. Initializes the global-state.