RCFProto

- Main Page
- Classes
- Files

- File List

All Classes Functions Typedefs
SessionObjectFactoryService.hpp
1
2 //******************************************************************************
3 // RCF - Remote Call Framework
4 //
5 // Copyright (c) 2005 - 2013, Delta V Software. All rights reserved.
6 // http://www.deltavsoft.com
7 //
8 // RCF is distributed under dual licenses - closed source or GPL.
9 // Consult your particular license for conditions of use.
10 //
11 // If you have not purchased a commercial license, you are using RCF
12 // under GPL terms.
13 //
14 // Version: 2.0
15 // Contact: support <at> deltavsoft.com
16 //
17 //******************************************************************************
18
19 #ifndef INCLUDE_RCF_SESSIONOBJECTFACTORYSERVICE_HPP
20 #define INCLUDE_RCF_SESSIONOBJECTFACTORYSERVICE_HPP
21
22 #include <RCF/ObjectFactoryService.hpp>
23
24 namespace RCF {
25
26 class RCF_EXPORT SessionObjectFactoryService :
27 public I_Service,
28 public StubFactoryRegistry,
29 boost::noncopyable
30 {
31 public:
32 boost::int32_t CreateSessionObject(const std::string &objectName);
33 boost::int32_t DeleteSessionObject();
34
35 private:
36 void onServiceAdded(RcfServer &server);
37 void onServiceRemoved(RcfServer &server);
38 };
39
40 typedef boost::shared_ptr<SessionObjectFactoryService>
41 SessionObjectFactoryServicePtr;
42
43 } // namespace RCF
44
45 #endif // ! INCLUDE_RCF_SESSIONOBJECTFACTORYSERVICE_HPP