w11 - cpp 0.794
Backend server for Rlink and w11
|
FIXME_docs. More...
#include <RerrMsg.hpp>
Public Member Functions | |
RerrMsg () | |
Default constructor. | |
RerrMsg (const RerrMsg &rhs) | |
Copy constructor. | |
RerrMsg (const std::string &meth, const std::string &text) | |
Construct from method and message text. | |
RerrMsg (const std::string &meth, const std::string &text, int errnum) | |
Construct from method and message text and errno. | |
~RerrMsg () | |
Destructor. | |
void | Init (const std::string &meth, const std::string &text) |
FIXME_docs. | |
void | InitErrno (const std::string &meth, const std::string &text, int errnum) |
FIXME_docs. | |
void | InitPrintf (const std::string &meth, const char *format,...) |
FIXME_docs. | |
void | SetMeth (const std::string &meth) |
FIXME_docs. | |
void | SetText (const std::string &text) |
FIXME_docs. | |
void | Prepend (const std::string &meth) |
FIXME_docs. | |
void | Append (const std::string &text) |
FIXME_docs. | |
void | AppendErrno (int errnum) |
FIXME_docs. | |
void | AppendPrintf (const char *format,...) |
FIXME_docs. | |
const std::string & | Meth () const |
FIXME_docs. | |
const std::string & | Text () const |
FIXME_docs. | |
std::string | Message () const |
FIXME_docs. | |
void | Swap (RerrMsg &rhs) |
FIXME_docs. | |
RerrMsg & | operator= (const RerrMsg &rhs) |
FIXME_docs. | |
operator std::string () const | |
FIXME_docs. | |
Protected Attributes | |
std::string | fMeth |
originating method | |
std::string | fText |
message text | |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &os, const RerrMsg &obj) |
ostream insertion operator. | |
FIXME_docs.
Definition at line 25 of file RerrMsg.hpp.
Retro::RerrMsg::RerrMsg | ( | ) |
Default constructor.
Definition at line 36 of file RerrMsg.cpp.
Retro::RerrMsg::RerrMsg | ( | const RerrMsg & | rhs | ) |
Copy constructor.
Definition at line 44 of file RerrMsg.cpp.
Retro::RerrMsg::RerrMsg | ( | const std::string & | meth, |
const std::string & | text | ||
) |
Construct from method and message text.
Definition at line 51 of file RerrMsg.cpp.
Retro::RerrMsg::RerrMsg | ( | const std::string & | meth, |
const std::string & | text, | ||
int | errnum | ||
) |
Construct from method and message text and errno.
Definition at line 59 of file RerrMsg.cpp.
References AppendErrno().
Retro::RerrMsg::~RerrMsg | ( | ) |
Destructor.
Definition at line 68 of file RerrMsg.cpp.
void Retro::RerrMsg::Init | ( | const std::string & | meth, |
const std::string & | text | ||
) |
FIXME_docs.
Definition at line 74 of file RerrMsg.cpp.
Referenced by Retro::RparseUrl::AddOpt(), Retro::Rw11Unit::Attach(), Retro::Rw11UnitVirt< TV >::Attach(), Retro::Rw11VirtTapeTap::BadTapeMsg(), Retro::Rw11Cpu::Boot(), Retro::Rw11VirtTapeTap::CheckSizeBack(), Retro::Rw11VirtTapeTap::CheckSizeForw(), Retro::RtclSignalAction::ClearAction(), Retro::Rfd::Close(), Retro::Rtools::CreateBackupFile(), Retro::Rw11VirtDiskOver::Flush(), Retro::RtclSignalAction::GetAction(), Retro::RtclSignalAction::Init(), Retro::Rw11Cpu::LoadAbs(), Retro::Rw11Cpu::MemWriteByte(), Retro::RlinkPortFactory::New(), Retro::Rw11VirtDisk::New(), Retro::Rw11VirtEth::New(), Retro::Rw11VirtTape::New(), Retro::Rw11VirtTerm::New(), Retro::Rw11VirtDiskRam::Open(), Retro::RlinkPortCuff::Open(), Retro::RlinkPortTerm::Open(), Retro::Rw11VirtEthTap::Open(), Retro::Rw11VirtTapeTap::Open(), Retro::Rw11VirtTermTcp::Open(), Retro::RlinkPortFifo::OpenFifo(), Retro::Rw11VirtTapeTap::ParseMeta(), Retro::RlinkPacketBufRcv::ReadData(), Retro::Rw11VirtTapeTap::ReadRecord(), Retro::RparseUrl::Set(), Retro::RlinkPacketBufSnd::SndRaw(), Retro::Rw11VirtTapeTap::SpaceBack(), Retro::Rtools::String2Long(), Retro::RethTools::String2Mac(), Retro::RtclSignalAction::ValidSignal(), Retro::Rw11UnitStream::VirtFlush(), Retro::Rw11UnitDisk::VirtRead(), Retro::Rw11UnitStream::VirtRead(), Retro::Rw11UnitTape::VirtReadRecord(), Retro::Rw11UnitTape::VirtRewind(), Retro::Rw11UnitTape::VirtSpaceBack(), Retro::Rw11UnitTape::VirtSpaceForw(), Retro::Rw11UnitStream::VirtWrite(), Retro::Rw11UnitDisk::VirtWrite(), Retro::Rw11UnitTape::VirtWriteEof(), and Retro::Rw11UnitTape::VirtWriteRecord().
void Retro::RerrMsg::InitErrno | ( | const std::string & | meth, |
const std::string & | text, | ||
int | errnum | ||
) |
FIXME_docs.
Definition at line 84 of file RerrMsg.cpp.
References AppendErrno(), fMeth, and fText.
Referenced by Retro::RtclSignalAction::ClearAction(), Retro::Rfd::Close(), Retro::Rtools::CreateBackupFile(), Retro::Rw11VirtStream::Flush(), Retro::Rw11Cpu::LoadAbs(), Retro::RfileFd::Open(), Retro::RlinkPortTerm::Open(), Retro::Rw11VirtEthTap::Open(), Retro::Rw11VirtStream::Open(), Retro::Rw11VirtTermPty::Open(), Retro::Rw11VirtTermTcp::Open(), Retro::RlogFile::Open(), Retro::RlinkPortFifo::OpenFifo(), Retro::RlinkPortCuff::OpenPipe(), Retro::RlinkPort::Read(), Retro::Rw11VirtStream::Read(), Retro::RfileFd::Read(), Retro::Rw11VirtStream::Seek(), Retro::RfileFd::Seek(), Retro::RtclSignalAction::SetAction(), Retro::Rw11VirtEthTap::Snd(), Retro::Rw11VirtTermPty::Snd(), Retro::RfileFd::Stat(), Retro::Rw11VirtStream::Tell(), Retro::RfileFd::Truncate(), Retro::RlinkPort::Write(), Retro::Rw11VirtStream::Write(), and Retro::RfileFd::WriteAll().
void Retro::RerrMsg::InitPrintf | ( | const std::string & | meth, |
const char * | format, | ||
... | |||
) |
|
inline |
|
inline |
void Retro::RerrMsg::Prepend | ( | const std::string & | meth | ) |
void Retro::RerrMsg::Append | ( | const std::string & | text | ) |
void Retro::RerrMsg::AppendErrno | ( | int | errnum | ) |
FIXME_docs.
Definition at line 134 of file RerrMsg.cpp.
References fText.
Referenced by InitErrno(), and RerrMsg().
void Retro::RerrMsg::AppendPrintf | ( | const char * | format, |
... | |||
) |
|
inline |
FIXME_docs.
Definition at line 39 of file RerrMsg.ipp.
References fMeth.
Referenced by Retro::Rtools::Catch2Cerr(), and Retro::Rfd::CloseOrCerr().
|
inline |
FIXME_docs.
Definition at line 47 of file RerrMsg.ipp.
References fText.
Referenced by Retro::Rtools::Catch2Cerr(), Retro::Rfd::CloseOrCerr(), Retro::RtclSetList::M_set(), Retro::RlinkConnect::SetLogFileName(), Retro::RtclRlinkPort::SetLogFileName(), Retro::Rw11VirtTape::SetPosFile(), and Retro::Rw11VirtTape::SetPosRecord().
std::string Retro::RerrMsg::Message | ( | ) | const |
FIXME_docs.
Definition at line 161 of file RerrMsg.cpp.
Referenced by operator<<(), Retro::RlinkPort::Read(), and Retro::RlinkPort::Write().
void Retro::RerrMsg::Swap | ( | RerrMsg & | rhs | ) |
|
inline |
FIXME_docs.
Definition at line 55 of file RerrMsg.ipp.
|
related |
|
protected |
originating method
Definition at line 58 of file RerrMsg.hpp.
Referenced by Init(), InitErrno(), InitPrintf(), Message(), Meth(), operator=(), Prepend(), SetMeth(), and Swap().
|
protected |
message text
Definition at line 59 of file RerrMsg.hpp.
Referenced by Append(), AppendErrno(), AppendPrintf(), Init(), InitErrno(), InitPrintf(), Message(), operator=(), SetText(), Swap(), and Text().