24 using extends::extends;
32 error() <<
"Cannot initialize base class!" <<
endmsg;
53 #define CHECK( x, y ) \ 54 if ( !x.isSuccess() ) _check( x, y ); \ 61 CHECK( sc,
"Cannot create partition: " + nam +
" of type " + typ );
67 CHECK( sc,
"Cannot create partition: " + nam +
" of type " + typ );
73 CHECK( sc,
"Cannot drop partition: " + nam );
79 CHECK( sc,
"Cannot drop partition by Interface." );
85 CHECK( sc,
"Cannot activate partition: " + nam );
91 CHECK( sc,
"Cannot activate partition by Interface." );
97 CHECK( sc,
"Cannot get partition " + nam );
103 CHECK( sc,
"Cannot determine active partition." );
Requested interface is not available.
MsgStream & msg() const
shortcut for the method msgStream(MSG::INFO)
Implementation of property with value of concrete type.
virtual StatusCode create(const std::string &name, const std::string &type)=0
Create a partition object. The name identifies the partition uniquely.
#define DECLARE_COMPONENT(type)
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
This class is used for returning status codes from appropriate routines.
virtual StatusCode get(const std::string &name, IInterface *&pPartition) const =0
Access a partition object. The name identifies the partition uniquely.
Definition of the basic interface.
virtual StatusCode activePartition(std::string &name, IInterface *&pPartition) const =0
Access the active partition object.
Create / access partitions.
Base class used to extend a class implementing other interfaces.
virtual StatusCode drop(const std::string &name)=0
Drop a partition object. The name identifies the partition uniquely.
virtual StatusCode activate(const std::string &name)=0
Activate a partition object. The name identifies the partition uniquely.
code_t getCode() const
Retrieve value ("checks" the StatusCode)
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.