OpenDaVINCI  4.16.0
ContainerConferenceFactory.h
Go to the documentation of this file.
1 
20 #ifndef OPENDAVINCI_CORE_IO_CONFERENCE_CONTAINERCONFERENCEFACTORY_H_
21 #define OPENDAVINCI_CORE_IO_CONFERENCE_CONTAINERCONFERENCEFACTORY_H_
22 
23 #include <string>
24 
26 #include <memory>
28 
29 namespace odcore {
30  namespace io {
31  namespace conference {
32 
33 class ContainerConference;
34 
35  using namespace std;
36 
41  public:
42  enum {
43  MULTICAST_PORT = 12175 // Mariposa Rd, Victorville.
44  };
45 
46  private:
53 
60 
61  protected:
67 
68  public:
69  virtual ~ContainerConferenceFactory();
70 
76  static ContainerConferenceFactory& getInstance();
77 
85  virtual std::shared_ptr<ContainerConference> getContainerConference(const string &address, const uint32_t &port = ContainerConferenceFactory::MULTICAST_PORT);
86 
87  protected:
93  static void setSingleton(ContainerConferenceFactory* singleton);
94 
95  private:
96  static base::Mutex m_singletonMutex;
97  static ContainerConferenceFactory* m_singleton;
98  };
99 
100  }
101  }
102 } // odcore::io::conference
103 
104 #endif /*OPENDAVINCI_CORE_IO_CONFERENCE_CONTAINERCONFERENCEFACTORY_H_*/
Definition: base/Mutex.h:49
Definition: ContainerConferenceFactory.h:40
#define OPENDAVINCI_API
Definition: opendavinci.h:67