Class: |
DimUpdatedInfo |
Library: |
DIM |
|
Author: |
C. Gaspar |
|
Version: |
v1.0 |
Update : Wed Apr 05 15:52:46 2000 |
Descrition :
To be used by DIM clients - implements DIM service
subscription and reception
DimUpdatedInfo constructors subscribe to DIM services.
DimUpdatedInfo Services can be requested to be updated
when the contents change and/or at regular time intervals.
The
difference between DimUpdatedInfo and DimInfo is that services are not received
at Startup, i.e. the first time a client subscribes to a service.
The services are received when the server updates
them or after a timeout limit if the parameter "time" is specified.
DimUpdatedInfo inherits its behaviour from DimInfo,
please refer to it for detailed description.
Please refer to Usage for
examples.
Constructors (as for DimInfo):
Constructors for Services updated only by the
server
-
public DimUpdatedInfo ( char * name,
int nolink) ; Integer (or Integer Array) Service
-
public DimUpdatedInfo ( char * name,
float nolink) ; Float (or Float Array) Service
-
public DimUpdatedInfo ( char * name,
double nolink) ; Double (or Double Array) Service
-
public DimUpdatedInfo ( char * name, String nolink) ; Character String Service
Constructors for Services updated (also) on a time
basis
-
public DimUpdatedInfo ( char * name,
int time, int nolink) ; Integer (or Integer Array) Service
-
public DimUpdatedInfo ( char * name,
int time, float nolink) ; Float (or Float Array) Service
-
public DimUpdatedInfo ( char * name,
int time, double nolink) ; Double (or Double Array) Service
-
public DimUpdatedInfo ( char * name,
int time, String nolink) ; Character String Service
Destructors :
-
public releaseService ( ) ;
Public Functions :
Inherited from DimInfo:
-
virtual void infoHandler
( ) ; To be overloaded
-
int getInt ( ) ; Get Integer Service Contents
-
float getFloat ( ) ; Get Float Service Contents
-
double getDouble ( ) ; Get Double Service Contents
-
String getString ( ) ; Get String Service Contents
-
int[] getIntArray ( ) ; Get Integer Array Service Contents
-
float[] getFloatArray ( ) ; Get Float Array Service Contents
-
double[] getDoubleArray ( ) ; Get Double Array Service Contents
Usage :
DimUpdatedInfo can be used exactly like DimInfo: