17 #ifndef CSTRING_INCLUDED
43 ELrecv ( nbytes, data,
"*ELrecv*" );
49 static const int MAXITEMCOUNT = 100;
65 const char * nextItem =
data;
68 nextItem += strlen(nextItem) + 1;
70 if (localModule ==
"*ELrecv*") module = nextItem;
71 else module = localModule +
":" + nextItem;
72 nextItem += strlen(nextItem) + 1;
74 subroutine = nextItem;
75 nextItem += strlen(nextItem) + 1;
78 nextItem += strlen(nextItem) + 1;
81 nextItem += strlen(nextItem) + 1;
82 std::istringstream ist (sevString);
83 if ( ! (ist >> sevLevel) ) {
86 errlog (
ELerror2,
"Collection Error" ) <<
87 "An error message received has an unreadable value of severity level"
94 errlog (
ELerror2,
"Collection Error" ) <<
95 "An error message received has an out-of-range value of severity level"
105 nextItem += strlen(nextItem) + 1;
109 nextItem += strlen(nextItem) + 1;
113 nextItem += strlen(nextItem) + 1;
137 for ( itemCount = 0; itemCount < MAXITEMCOUNT; itemCount++ ) {
138 if (*nextItem == 0)
break;
140 nextItem += strlen(nextItem) + 1;
148 if ( localModule ==
"*ELrecv*" ) {
152 if ( *nextItem++ != 0 ) {
154 errlog (
ELerror2,
"Collection Error" ) <<
155 "Apparent runaway error message on the previous message!" <<
156 "Truncated after " << MAXITEMCOUNT <<
"items." <<
endmsg;
159 if ( diff != nbytes ) {
161 errlog (
ELerror2,
"Collection Error" ) <<
162 "Apparent corrupted transmission of error message"
163 <<
"on the previous message!"
164 <<
"Total length was" << diff <<
"nbytes transmitted was" << nbytes
void setModule(const ELstring &modName)
ELstring swapProcess(const ELstring &process)
ELstring fullContext() const
void setFullContext(const ELstring &s)
void setSummaryContext(const ELstring &s)
void endmsg(ErrorLog &log)
ELcontextSupplier & swapContextSupplier(ELcontextSupplier &cs)
void setSubroutine(const ELstring &subName)
ELstring summaryContext() const
ELslProxy< ELerror2Gen > const ELerror2
static ELadministrator * instance()
char data[epos_bytes_allocation]
void setContext(const ELstring &s)
void ELrecv(int nbytes, const char *data)
ELservConSup * clone() const