This class is a factory class used to create instances of the class IlsMvServer
.
More...
#include <ilserver/mvserver.h>
Public Member Functions | |
IlsMvServerFactory () | |
Constructor. More... | |
virtual | ~IlsMvServerFactory () |
Destructor. More... | |
virtual IlsMvServer * | newInstance (int threadMode) |
Called by the server on the class singleton to create an instance of IlsMvServer . More... | |
Static Public Member Functions | |
static IlsMvServerFactory & | GetSingleton () |
Returns a reference to the server factory. More... | |
static IlsMvServerFactory * | GetSingletonPtr () |
Returns a pointer to the class singleton. More... | |
static IlsMvServerFactory * | SetSingleton (IlsMvServerFactory *s) |
Declares the object pointed to by s as the server factory singleton. More... | |
This class is a factory class used to create instances of the class IlsMvServer
.
Library: mvserver
By subclassing IlsMvServerFactory
and overriding the function newInstance()
, you can create your own subtype of IlsMvServer
.
IlsMvServer
. IlsMvServerFactory::IlsMvServerFactory | ( | ) |
Constructor.
This constructor is called either by the constructor of a derived class or by the GetSingleton()
function.
|
virtual |
Destructor.
The singleton is automatically deleted at process exit.
|
static |
Returns a reference to the server factory.
If no factory has been declared yet (see the function SetSingleton()
), an instance of IlsMvServerFactory
is automatically created, declared as the class singleton using the SetSingleton()
function, and returned as the result of the function.
|
static |
Returns a pointer to the class singleton.
|
virtual |
Called by the server on the class singleton to create an instance of IlsMvServer
.
You must override it if you want Rogue Wave Server to create instances of a specific derived class.
threadMode | specifies the execution mode of the server. Refer to the protected IlsMvServer constructor for details about the various server execution modes. |
|
static |
Declares the object pointed to by s as the server factory singleton.
If s is null, it means that there is no longer a server factory singleton. Either the address of the previous current server factory or, by default, the null pointer is returned as the result of the function.
s | the new factory singleton. |