This class is the factory class used to create instances of the IlsMvComponent
class.
More...
#include <ilserver/mvcomp.h>
Public Member Functions | |
IlsMvComponentFactory () | |
Constructor. More... | |
virtual | ~IlsMvComponentFactory () |
Destructor. More... | |
virtual const char * | getHostName () |
Ysed by Rogue Wave Server when a component connects to a server. More... | |
virtual const char * | getInetId () |
Used by Rogue Wave Server when a component connects to a server. More... | |
virtual long | getProcessId () |
Used by Rogue Wave Server when a component connects to a server. More... | |
virtual long | getUserId () |
Used by Rogue Wave Server when a component connects to a server. More... | |
virtual IlsMvValue * | getUserInfo (int &argc) |
Called by a Server component when the connection to a server is established. More... | |
virtual const char * | getUserName () |
Used by Rogue Wave Server when a component connects to a server. More... | |
virtual IlsMvComponent * | newInstance () |
Called by the Instanciate() function on the class singleton to create a new instance of an IlsMvComponent class or subclass. More... | |
Static Public Member Functions | |
static IlsMvComponentFactory & | GetSingleton () |
Returns a reference to the component factory. More... | |
static IlsMvComponentFactory * | GetSingletonPtr () |
Returns a pointer to the class singleton. More... | |
static IlsMvComponent * | Instanciate () |
Called by Rogue Wave Server to create a new instance of the IlsMvComponent class. More... | |
static IlsMvComponentFactory * | SetSingleton (IlsMvComponentFactory *s) |
Declares the object pointed to by s as the component factory singleton. More... | |
This class is the factory class used to create instances of the IlsMvComponent
class.
Library: mvserver
and mvcomp
Any component of a dynamic view server, either distributed or linked, is implemented by an instance of the IlsMvComponent
type or of one of its subtypes.
IlsMvComponent::Connect()
).IlsMvServer::OpenView()
).By subclassing IlsMvComponentFactory
and overriding the newInstance()
function, you can create your own subtype of IlsMvComponent
.
IlsMvComponent
. IlsMvComponentFactory::IlsMvComponentFactory | ( | ) |
Constructor.
The construction of an IlsMvComponentFactory
object is triggered either by the function GetSingleton()
or by the construction of a subtype object.
|
virtual |
Destructor.
The destruction of the singleton is automatically performed at process exit.
|
virtual |
Ysed by Rogue Wave Server when a component connects to a server.
This function returns the name of the host running the component. It can be overridden.
|
virtual |
Used by Rogue Wave Server when a component connects to a server.
This function returns the IP address of the host on the Internet. It can be overridden.
|
virtual |
Used by Rogue Wave Server when a component connects to a server.
This function returns the component process identifier. It can be overridden.
|
static |
Returns a reference to the component factory.
If no factory has been declared yet, an instance of IlsMvComponentFactory
is automatically created. It is declared as the class singleton using the SetSingleton()
member function and returned as the result of this function.
|
static |
Returns a pointer to the class singleton.
If no singleton has been declared yet, it returns the null pointer.
|
virtual |
Used by Rogue Wave Server when a component connects to a server.
This function returns the user identifier. It can be overridden.
|
virtual |
Called by a Server component when the connection to a server is established.
The function returns an array of IlsMvValue
objects which are then assigned to the corresponding IlsMvUser
instance on the server side.
See the member functions IlsMvUser::setUserInfo()
and IlsMvUser::getUserInfo()
for more information. If the returned arrary is not null, Rogue Wave Server deletes it using the system function delete []
. The argc parameter must be set to the size of the returned array.
|
virtual |
Used by Rogue Wave Server when a component connects to a server.
This function returns the name of the user who started the component. It can be overridden.
|
static |
Called by Rogue Wave Server to create a new instance of the IlsMvComponent
class.
It calls the newInstance()
function on the class singleton (see GetSingleton()
).
|
virtual |
Called by the Instanciate()
function on the class singleton to create a new instance of an IlsMvComponent
class or subclass.
You must override it if you want Rogue Wave Server to create instances of a specific derived class.
GetSingleton()
, Instanciate()
.Reimplemented in IlsSwComponentFactory.
|
static |
Declares the object pointed to by s as the component factory singleton.
If s is null, the component factory singleton no longer exists. This function returns the address of the previous current component factory or, by default, the null pointer.
s | pointer to the new singleton |