#ifndef P2PVRP2_CONFIG_H #define P2PVRP2_CONFIG_H #include #include #include #include class Config : public ComponentLoader { public: static Ice::ObjectAdapterPtr Adapter(); static Ice::CommunicatorPtr Communicator(); template static Proxy GetProxy(const std::string & interface) { return Proxy::checkedCast(ic->stringToProxy(interface + ":" + DaemonAddress)); } INITOPTIONS; void onConfigLoad(); static std::string DaemonAddress; static std::string CommunicatorArgs; private: static Ice::CommunicatorPtr ic; static Ice::ObjectAdapterPtr adapter; }; #endif