ewmscp  ..
Functions
throwcall::dcap Namespace Reference

Functions

template<typename T , typename ... Args>
void good0 (T call, const Args &... args)
 
template<typename T , typename t , typename ... Args>
badval (T call, t badvalue, const Args &... args)
 

Function Documentation

◆ badval()

template<typename T , typename t , typename ... Args>
T throwcall::dcap::badval ( call,
badvalue,
const Args &...  args 
)
inline

Definition at line 28 of file dcapCommon.h.

28  {
29  if (__builtin_expect(call == badvalue, false)) {
30  std::ostringstream msg;
31  conCatString(msg, "dcap error ", dc_errno, " (", dc_strerror(dc_errno), ") ", args...);
32  throw std::runtime_error(msg.str());
33  }
34  return call;
35  };

References throwcall::conCatString().

Referenced by inputHandler::dcap::dcapDirectory::dcapDirectory(), inputHandler::dcap::readerDcap::readBlock(), inputHandler::dcap::readerDcap::readerDcap(), outputHandler::dcap::writerDcap::writeBlock(), and outputHandler::dcap::writerDcap::writerDcap().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ good0()

template<typename T , typename ... Args>
void throwcall::dcap::good0 ( call,
const Args &...  args 
)
inline

Definition at line 21 of file dcapCommon.h.

21  {
22  if (__builtin_expect(call, 0)) {
23  std::ostringstream msg;
24  conCatString(msg, "dcap error ", dc_errno, " (", dc_strerror(dc_errno), ") ", args...);
25  throw std::runtime_error(msg.str());
26  }
27  };

References throwcall::conCatString().

Referenced by inputHandler::dcap::readerDcap::checkUnchangedness(), outputHandler::dcap::doAttributePreservations(), outputHandler::dcap::ensureParentDirs(), inputHandler::dcap::dcapDirectory::getNextEntry(), dcapCommon::getStat(), dcapIoCommon::getStat(), dcapCommon::pathExists(), outputHandler::dcap::remove(), outputHandler::dcap::rename(), outputHandler::dcap::renameSimple(), outputHandler::dcap::writerDcap::sync(), inputHandler::dcap::dcapDirectory::~dcapDirectory(), inputHandler::dcap::readerDcap::~readerDcap(), and outputHandler::dcap::writerDcap::~writerDcap().

Here is the call graph for this function:
Here is the caller graph for this function:
errMsg::conCatString
void conCatString(std::ostringstream &msg, const T &begin)
Definition: errMsgQueue.h:134