18 typedef const std::string&
CSTR;
55 log <<
MSG::ERROR <<
"Cannot retrieve partition controller \""
71 #define CHECK(x,y) if ( !x.isSuccess() ) _check(x, y); return x;
76 CHECK(sc,
"Cannot create partition: "+nam+
" of type "+typ);
81 CHECK(sc,
"Cannot create partition: "+nam+
" of type "+typ);
86 CHECK(sc,
"Cannot drop partition: "+nam);
91 CHECK(sc,
"Cannot drop partition by Interface.");
96 CHECK(sc,
"Cannot activate partition: "+nam);
101 CHECK(sc,
"Cannot activate partition by Interface.");
106 CHECK(sc,
"Cannot get partition "+nam);
111 CHECK(sc,
"Cannot determine active partition.");
Definition of the MsgStream class used to transmit messages.
unsigned long getCode() const
Get the status code by value.
Requested interface is not available.
bool isSuccess() const
Test for a status code of SUCCESS.
#define DECLARE_COMPONENT(type)
This class is used for returning status codes from appropriate routines.
Definition of the basic interface.
Base class used to extend a class implementing other interfaces.
TYPE * get() const
Get interface pointer.
Create / access partitions.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.