// ********************************************************************** // // Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved. // // This copy of Ice-E is licensed to you under the terms described in the // ICEE_LICENSE file included in this distribution. // // ********************************************************************** #ifndef TEST_APPLICATION_H #define TEST_APPLICATION_H #include #include #include // // XXX: For ICE_TEST_COMMON_API. We could create a TestConfig.h later, or // perhaps make Test/... subdirectory. // #include class ICE_TEST_COMMON_API TestApplication { public: TestApplication(const std::string& = ""); virtual ~TestApplication() { } #ifdef _WIN32_WCE int main(HINSTANCE); #else int main(int, char*[]); #endif virtual int run(int, char*[]) = 0; Ice::LoggerPtr getLogger(); void setCommunicator(const Ice::CommunicatorPtr&); Ice::CommunicatorPtr communicator(); bool terminated() const; void loadConfig(const Ice::PropertiesPtr&); private: const std::string _name; Ice::CommunicatorPtr _communicator; }; #endif