Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef ACE_QOS_SESSION_FACTORY_H
00015 #define ACE_QOS_SESSION_FACTORY_H
00016 #include "ace/pre.h"
00017
00018 #include "ace/QoS/QoS_Session.h"
00019
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 # pragma once
00022 #endif
00023
00024 #include "ace/Containers_T.h"
00025 #include "ACE_QoS_Export.h"
00026
00027 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00028
00029
00030 class ACE_QoS_Session;
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041 class ACE_QoS_Export ACE_QoS_Session_Factory
00042 {
00043
00044 public :
00045
00046
00047
00048 ACE_QoS_Session_Factory (void);
00049
00050
00051 ~ACE_QoS_Session_Factory (void);
00052
00053
00054
00055 enum ACE_QoS_Session_Type
00056 {
00057
00058 ACE_RAPI_SESSION,
00059
00060
00061 ACE_GQOS_SESSION
00062 };
00063
00064
00065
00066
00067
00068
00069 static const enum ACE_QoS_Session_Type ACE_DEFAULT_QOS_SESSION;
00070
00071
00072 ACE_QoS_Session * create_session (ACE_QoS_Session_Type qos_session_type = ACE_DEFAULT_QOS_SESSION );
00073
00074
00075 int destroy_session (ACE_QoS_Session *qos_session);
00076
00077 private:
00078
00079
00080
00081 int add_session (ACE_QoS_Session *qos_session);
00082
00083
00084
00085 int remove_session (ACE_QoS_Session *qos_session);
00086
00087
00088 typedef ACE_Unbounded_Set <ACE_QoS_Session *> QOS_SESSION_SET;
00089 QOS_SESSION_SET qos_session_set_;
00090
00091 };
00092
00093 ACE_END_VERSIONED_NAMESPACE_DECL
00094
00095 #include "ace/post.h"
00096 #endif