BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
ers Namespace Reference

Classes

class  Assertion
 This Issue represents a basic assertion. More...
 
struct  Compile_time_error
 compile time error structure. More...
 
struct  Compile_time_error< true >
 compile time error structure More...
 
class  Context
 Source context for Issue. More...
 
class  Core
 Miscalenous constants. More...
 
class  DefaultIssue
 Place holder Issue class. More...
 
class  DefaultStream
 Default Issue display. More...
 
class  EntityNotFoundIssue
 
class  FIFOStream
 Queue stream. More...
 
class  FilterStream
 filtering stream More...
 
class  HumanStream
 Single line, human readable format stream. More...
 
class  InvalidReferenceIssue
 Invalid pointer issue. More...
 
class  Issue
 Root Issue class. More...
 
class  IssueFactory
 Factory for all Issues. More...
 
class  IssueFactoryIssue
 Issue in the Issue factory mechanism. More...
 
class  LogIssue
 Wrapper for log messages. More...
 
class  NotImplemented
 Macro to mark unimplemented code. More...
 
class  ParseIssue
 Data parsing error. More...
 
class  Precondition
 Precondition issue. More...
 
class  RangeIssue
 
class  Stream
 Root/Null issue stream. More...
 
class  StreamFactory
 Factory for Stream objects and repository of default streams. More...
 

Typedefs

typedef enum ers::_severity_t severity_t
 
typedef enum ers::_responsibility_t responsibility_t
 
typedef std::map< std::string, std::string > string_map_type
 
typedef std::vector< std::string > string_vector
 

Enumerations

enum  _severity_t {
  severity_none , debug_0 , debug_1 , debug_2 ,
  debug_3 , information , notification , warning ,
  error , fatal , severity_max
}
 
enum  _responsibility_t {
  resp_client , resp_server , resp_dependency , resp_unknown ,
  resp_max
}
 

Functions

std::ostream & operator<< (std::ostream &, const Issue &)
 
Streamoperator<< (Stream &, const Issue &)
 
std::ostream & operator<< (std::ostream &, const IssueFactory &factory)
 streaming operator
 
std::ostream & operator<< (std::ostream &target, const ers::Stream &s)
 
std::ostream & operator<< (std::ostream &, const ers::StreamFactory &factory)
 streaming operator
 

Typedef Documentation

◆ responsibility_t

◆ severity_t

◆ string_map_type

typedef std::map<std::string, std::string> ers::string_map_type

Definition at line 26 of file Core.h.

◆ string_vector

typedef std::vector<std::string> ers::string_vector

Definition at line 27 of file Core.h.

Enumeration Type Documentation

◆ _responsibility_t

Enumerator
resp_client 
resp_server 
resp_dependency 
resp_unknown 
resp_max 

Definition at line 25 of file Core.h.

@ resp_dependency
Definition: Core.h:25
@ resp_client
Definition: Core.h:25
@ resp_unknown
Definition: Core.h:25
@ resp_server
Definition: Core.h:25
@ resp_max
Definition: Core.h:25

◆ _severity_t

Enumerator
severity_none 
debug_0 
debug_1 
debug_2 
debug_3 
information 
notification 
warning 
error 
fatal 
severity_max 

Definition at line 24 of file Core.h.

@ warning
Definition: Core.h:24
@ error
Definition: Core.h:24
@ debug_3
Definition: Core.h:24
@ notification
Definition: Core.h:24
@ debug_0
Definition: Core.h:24
@ debug_2
Definition: Core.h:24
@ severity_max
Definition: Core.h:24
@ information
Definition: Core.h:24
@ fatal
Definition: Core.h:24
@ severity_none
Definition: Core.h:24
@ debug_1
Definition: Core.h:24

Function Documentation

◆ operator<<() [1/5]

std::ostream & ers::operator<< ( std::ostream &  stream,
const ers::StreamFactory factory 
)

streaming operator

Streaming operator

Parameters
streamdestination stream
factorythe factory object to display
Returns
the stream passed as first parameter
See also
ers::StreamFactory::write_to()

Definition at line 398 of file StreamFactory.cxx.

398 {
399 factory.write_to(stream);
400 return stream ;
401} // operator
efhlt::Interface * factory(void)
Definition: factory.cxx:17

◆ operator<<() [2/5]

std::ostream & ers::operator<< ( std::ostream &  s,
const Issue i 
)

Standard Streaming operator - puts the human description into the Stream.

Parameters
sthe destination Stream
ithe Issue to Stream
See also
Issue::human_description()

Definition at line 215 of file ers/ers-00-00-03/src/Issue.cxx.

215 {
216 return s << i.human_description() ;
217} // operator<<
XmlRpcServer s
Definition: HelloServer.cpp:11
const std::string & human_description() const
Human description message.

◆ operator<<() [3/5]

std::ostream & ers::operator<< ( std::ostream &  stream,
const IssueFactory factory 
)

streaming operator

Definition at line 112 of file IssueFactory.cxx.

112 {
113 factory.write_to(stream);
114 return stream ;
115} // operator

◆ operator<<() [4/5]

std::ostream & ers::operator<< ( std::ostream &  target,
const ers::Stream s 
)

Definition at line 63 of file Stream.cxx.

63 {
64 s.print_to(target);
65 return target ;
66} // operator<<

◆ operator<<() [5/5]

Stream & ers::operator<< ( Stream s,
const Issue i 
)

Sends the Issue into a Stream

Parameters
sthe Stream to send the Issue into
ithe Issue to send
Returns
the Stream
See also
serialize_to()

Definition at line 226 of file ers/ers-00-00-03/src/Issue.cxx.

226 {
227 s.send(&i);
228 return s ;
229} // operator<<