34 warning() <<
" The 'remote' Algorithm PropertyAlg is not found" <<
endmsg;
42 std::string value(
"empty" );
43 std::string value1(
"empty" );
46 info() <<
" Got property this.RInt = " << value <<
";" <<
endmsg;
48 info() <<
" Set property this.RInt = 1001;" <<
endmsg;
49 if ( !this->
setProperty(
"RInt", 1001 ) ) {
warning() <<
"failed to set property RInt" << endmsg; }
52 info() <<
" Got property this.RInt = " << value <<
";" <<
endmsg;
53 if ( value !=
"1001" ) {
error() <<
"RInt value not what expected" <<
endmsg; }
56 m_remAlg->getProperty(
"String", value1 ).ignore();
57 if ( value == value1 ) {
58 info() <<
" Got property this.String = " << value <<
";" <<
endmsg;
60 error() <<
" Local property [" << value1 <<
"] not equal [" << value <<
"]" <<
endmsg;
const char *PyHelper getProperty(IInterface *p, char *name)
bool PyHelper setProperty(IInterface *p, char *name, char *value)
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
#define DECLARE_COMPONENT(type)
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
MsgStream & warning() const
shortcut for the method msgStream(MSG::WARNING)
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
StatusCode initialize() override
the default (empty) implementation of IStateful::initialize() method
SmartIF< ISvcLocator > & serviceLocator() const override
The standard service locator.
const std::string & name() const override
The identifying name of the algorithm object.
The IAlgManager is the interface implemented by the Algorithm Factory in the Application Manager to s...
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Gaudi::Details::PropertyBase * declareRemoteProperty(const std::string &name, IProperty *rsvc, const std::string &rname="")
Trivial Algorithm for tutotial purposes.
StatusCode finalize() override
PropertyProxy(const std::string &name, ISvcLocator *pSvcLocator)
Constructor of this form must be provided.
StatusCode execute() override
StatusCode initialize() override
Three mandatory member functions of any algorithm.
Small smart pointer class with automatic reference counting for IInterface.
This class is used for returning status codes from appropriate routines.
constexpr static const auto SUCCESS
constexpr static const auto FAILURE