[ROOT] --> C++Client
The PCREClient class provides a framework for the C/C++ client.
PCREClient
~PCREClient
CloseRetrieveJob
Connect
Connected
Disconnect
GetAPI
getHost
getName
getORB
getRetrieveJob
getRetrieveMode
GetService
getThreadClient
getThreadConsole
OpenEngine
OpenRetrieveJob
PrepareRetrieveJob
PutAPI
RemoveAPI
RemoveService
RemoveService
setName
setRetrieveMode
setThreadConsole
StartRetrieveJob
UseService
PCREClient ( PCREConsole * pConsole = NULL ,
int argc = 0 ,
char * const * argv = NULL ) ;
Construct a client with given console and arguments.
| pConsole | The console to use when communicating with this client, defaults to NULL. |
| argc | The number of arguments that are being provided, defaults to zero. |
| argv | Any parameters to pass to the client, defaults to NULL. |
virtual ~ PCREClient ( ) ;
Destructor for the client.
static PCREClient * getThreadClient ( ) ;
Get the thread client instance.
static PCREConsole * getThreadConsole ( ) ;
Get the console used by this client.
static PCREConsole * setThreadConsole ( PCREConsole * console ) ;
Set the console passed in parameter.
static const char * getHost ( ) ;
Get this client's host.
const char * getName ( ) ;
Get the name of this client.
void setName ( char * name ) ;
Set this client's name property.
| name | The name to be associated with this client. |
BOOL getRetrieveMode ( ) ;
Get the report retrieve-mode setting for the client.
void setRetrieveMode ( BOOL value ) ;
Set the report retrieve-mode for the client.
CORBA :: ORB_ptr getORB ( ) ;
Get the ORB.
void UseService ( PCREService * service ) ;
Add the service to the PCRERegistry.
| service | The service to use. |
PCREService * GetService ( const char * name ) ;
Retrieve the named PCRE service from the PCRERegistry.
| name | The name of the PCRE service to retrieve. |
void RemoveService ( const char * name ) ;
Remove the named PCRE service from the PCRERegistry.
| name | The name of the PCRE service to remove. |
void RemoveService ( PCREService * service ) ;
Remove the PCRE service from the PCRERegistry.
| name | The name of the PCRE service to remove. |
void PutAPI ( const char * name ,
CORBA :: Object_ptr api ) ;
Add an API to the API Registry.
| name | The name of the API. |
| api | The CORBA api object to use. |
CORBA :: Object_ptr GetAPI ( const char * name ) ;
Retrieve an API entry.
| name | The name of the API to retrieve. |
void RemoveAPI ( const char * name ) ;
Remove an API entry.
| name | The name of the API to remove. |
virtual void Connect ( BOOL useLoadBalancer = FALSE ) = 0 ;
Derived client classes must override to connect the appropriate set of services.
virtual void Disconnect ( ) = 0 ;
Derived client classes must override to disconnect the appropriate set of services.
BOOL Connected ( const char * name ) ;
Test to see if the client is connected to the named service.
| name | The name of the service to test. |
PCREEngine * OpenEngine ( const BOOL open = TRUE ) ;
Acquire and optionally open a print-engine for this client.
| open | If true, open the print-engine on the server. |
char * OpenRetrieveJob ( const char * reportName ) ;
Open a retrieve joib for the named report. The function stores the original report name and returns a substitute which will be used on the remote report-server.
| reportName | The local path-name for the report. |
PCRERetrieveJob * getRetrieveJob ( ) ;
Return the retrieve job currently opened in the client.
void PrepareRetrieveJob ( ) ;
Prepare the retrieve job currently opened in the client.
void StartRetrieveJob ( ) ;
Start the retrieve job currently opened in the client.
void CloseRetrieveJob ( ) ;
Close the retrieve job currently opened in the client.