#include <igtlSessionManager.h>
Public Types | |
enum | { MODE_SERVER , MODE_CLIENT } |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef SessionManager | Self |
typedef Object | Superclass |
Public Member Functions | |
int | AddMessageHandler (MessageHandler *) |
int | Connect () |
virtual LightObject::Pointer | CreateAnother () const |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
virtual void | Delete () |
int | Disconnect () |
bool | GetDebug () const |
const char * | GetHostname () |
int | GetMode () |
virtual const char * | GetNameOfClass () const |
int | GetPort () |
virtual int | GetReferenceCount () const |
igtlTypeMacro (Object, LightObject) | |
igtlTypeMacro (SessionManager, Object) igtlNewMacro(SessionManager) | |
void | Print (std::ostream &os) const |
int | ProcessMessage () |
int | PushMessage (MessageBase *) |
virtual void | Register () const |
int | RemoveMessageHandler (MessageHandler *) |
void | SetDebug (bool debugFlag) const |
void | SetHostname (const char *str) |
void | SetMode (int m) |
void | SetPort (int p) |
virtual void | SetReferenceCount (int) |
virtual void | UnRegister () const |
Static Public Member Functions | |
static void | BreakOnError () |
static Pointer | New () |
Protected Member Functions | |
SessionManager () | |
~SessionManager () | |
Protected Attributes | |
bool | m_ConfigurationUpdated |
MessageHandler * | m_CurrentMessageHandler |
int | m_CurrentReadIndex |
igtl::MessageHeader::Pointer | m_Header |
int | m_HeaderDeserialized |
std::string | m_Hostname |
std::vector< MessageHandler * > | m_MessageHandlerList |
int | m_Mode |
int | m_Port |
Socket::Pointer | m_Socket |
igtl::TimeStamp::Pointer | m_TimeStamp |
volatile int | m_ReferenceCount |
SimpleFastMutexLock | m_ReferenceCountLock |
virtual void | PrintHeader (std::ostream &os) const |
virtual void | PrintTrailer (std::ostream &os) const |
virtual void | PrintSelf (std::ostream &os) const |
static void | SetGlobalWarningDisplay (bool flag) |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
Definition at line 28 of file igtlSessionManager.h.
Definition at line 35 of file igtlSessionManager.h.
Definition at line 34 of file igtlSessionManager.h.
Definition at line 32 of file igtlSessionManager.h.
Definition at line 33 of file igtlSessionManager.h.
Enumerator | |
---|---|
MODE_SERVER | |
MODE_CLIENT |
Definition at line 41 of file igtlSessionManager.h.
|
protected |
|
protected |
int igtl::SessionManager::AddMessageHandler | ( | MessageHandler * | ) |
This method is called when igtlExceptionMacro executes. It allows the debugger to break on error.
int igtl::SessionManager::Connect | ( | ) |
|
virtualinherited |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from igtl::LightObject.
Delete an igtl object. This method should always be used to delete an object when the new operator was used to create it. Using the C delete method will not work with reference counting.
int igtl::SessionManager::Disconnect | ( | ) |
|
inherited |
Get the value of the debug flag.
Definition at line 47 of file igtlSessionManager.h.
|
inline |
Definition at line 54 of file igtlSessionManager.h.
Return the name of this class as a string. Used by the object factory (implemented in New()) to instantiate objects of a named type. Also used for debugging and other output information.
Definition at line 84 of file igtlLightObject.h.
|
inline |
Definition at line 49 of file igtlSessionManager.h.
Gets the reference count on this object.
Definition at line 110 of file igtlLightObject.h.
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Definition at line 116 of file igtlObject.h.
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Definition at line 114 of file igtlObject.h.
|
inherited |
Standard part of all igtl objects.
igtl::SessionManager::igtlTypeMacro | ( | SessionManager | , |
Object | |||
) |
Method for creation through the object factory.
|
inherited |
Cause the object to print itself out.
Number of uses of this object by other objects.
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from igtl::LightObject.
Reimplemented in igtl::ClientSocket, igtl::FastMutexLock, igtl::MultiThreader, igtl::MutexLock, igtl::ObjectFactoryBase, igtl::ServerSocket, igtl::Socket, and igtl::TimeStamp.
Number of uses of this object by other objects.
int igtl::SessionManager::ProcessMessage | ( | ) |
int igtl::SessionManager::PushMessage | ( | MessageBase * | ) |
Return this objects modified time.
Update the modification time for this object. Many filters rely on the modification time to determine if they need to recompute their data.
Increase the reference count (mark as used by another object).
Reimplemented from igtl::LightObject.
int igtl::SessionManager::RemoveMessageHandler | ( | MessageHandler * | ) |
Set the value of the debug flag. A non-zero value turns debugging on.
This is a global flag that controls whether any debug, warning or error messages are displayed.
Definition at line 46 of file igtlSessionManager.h.
Definition at line 53 of file igtlSessionManager.h.
Definition at line 48 of file igtlSessionManager.h.
Sets the reference count (use with care)
Reimplemented from igtl::LightObject.
Decrease the reference count (release by another object).
Reimplemented from igtl::LightObject.
|
protected |
Definition at line 73 of file igtlSessionManager.h.
|
protected |
Definition at line 85 of file igtlSessionManager.h.
|
protected |
Definition at line 82 of file igtlSessionManager.h.
|
protected |
Definition at line 90 of file igtlSessionManager.h.
|
protected |
Definition at line 83 of file igtlSessionManager.h.
|
protected |
Definition at line 74 of file igtlSessionManager.h.
|
protected |
Definition at line 87 of file igtlSessionManager.h.
|
protected |
Definition at line 76 of file igtlSessionManager.h.
|
protected |
Definition at line 75 of file igtlSessionManager.h.
Number of uses of this object by other objects.
Definition at line 131 of file igtlLightObject.h.
|
mutableprotectedinherited |
Mutex lock to protect modification to the reference count
Definition at line 134 of file igtlLightObject.h.
|
protected |
Definition at line 88 of file igtlSessionManager.h.
|
protected |
Definition at line 91 of file igtlSessionManager.h.