Class: |
DimCurrentInfo |
Library: |
DIM |
|
Author: |
C. Gaspar |
|
Version: |
v1.0 |
Update :Thu Feb 11 15:52:46
1999 |
Descrition :
To be used by DIM clients - implements blocking
DIM service reception
DimCurrentInfo constructors subscribe to DIM
services.
Required Parameters:
the Service Name and the value to receive when service not available
The methods get() wait for the Service to arrive
if it has not arrived yet. Once the service contents
are received the Service is discarded (The client
disconnects from the server).
Constructors :
-
public DimCurrentInfo ( char * name,
int nolink) ; Integer Service
-
public DimCurrentInfo ( char * name,
float nolink) ; Float Service
-
public DimCurrentInfo ( char * name,
double nolink) ; Double Service
-
public DimCurrentInfo ( char * name, short nolink) ;
Short Service
-
public DimCurrentInfo ( char * name, longlong nolink) ;
Longlong (64 bit) Service
-
public DimCurrentInfo ( char * name,
char * nolink) ; String Service
-
public DimCurrentInfo ( char * name,
void * nolink, int nolinksize) ; Structure Service
Destructors :
-
public ~ DimCurrentInfo ( ) ;
Public Functions :
-
int getInt ( ) ; Get Integer Service
contents
-
float getFloat ( ) ; Get Float Service
Contents
-
double getDouble ( ) ; get Double Service
Contents
-
short getShort ( ) ; get Short Service
Contents
-
longlong getLonglong ( ) ; get Longlong (64 bit) Service
Contents
-
char* getString ( ) ; Get String Service
contents
-
void* getData ( ) ; Get the Service contents
-
int getSize ( ) ; Get Service contents
Size
Usage :
Example:
DimCurrentInfo runNumber("DELPHI/RUN_NUMBER",-1);
cout << runNumber.getInt() << endl;
Last update : 02/11/99 17:42:12 by MkHelp
1.1.0