1 #ifndef __OUC_ECMSG_H__
2 #define __OUC_ECMSG_H__
61 int Get(std::string& ecm,
bool rst=
true);
69 bool hasMsg()
const {
return !ecMsg.empty();}
77 std::string&
Msg() {
return ecMsg;}
88 void Msg(
const char* pfx,
const char* txt1,
89 const char* txt2=0,
const char* txt3=0,
90 const char* txt4=0,
const char* txt5=0);
103 void Msgf(
const char *pfx,
const char *fmt, ...);
116 void MsgVA(
const char *pfx,
const char *fmt, std::va_list aP);
129 void MsgVec(
const char* pfx,
char const*
const* vecP,
int vecN);
138 void Set(
int ecc,
const char* ecm=
"") {eCode = ecc;
if (ecm) ecMsg = ecm;}
140 void Set(
int ecc, std::string& ecm) {eCode = ecc; ecMsg = ecm;}
152 int SetErrno(
int ecc,
int retval=-1,
const char *alt=0);
165 {ecMsg = rhs.ecMsg; eCode = rhs.eCode;
return *
this;};
172 void Setup(
const char *pfx,
int n);
XrdOucECMsg & operator=(const std::string &rhs)
XrdOucECMsg & operator=(const int rhs)
Assignment operators for convenience.
void MsgVA(const char *pfx, const char *fmt, std::va_list aP)
XrdOucECMsg & operator=(const char *rhs)
XrdOucECMsg(const char *msgid=0)
void Set(int ecc, const char *ecm="")
int Get(std::string &ecm, bool rst=true)
void Set(int ecc, std::string &ecm)
void MsgVec(const char *pfx, char const *const *vecP, int vecN)
XrdOucECMsg & Append(char dlm='\n')
XrdOucECMsg & operator=(XrdOucECMsg &rhs)
int SetErrno(int ecc, int retval=-1, const char *alt=0)
void Msgf(const char *pfx, const char *fmt,...)