1#ifndef Cpl_MApp_Requests_h_
2#define Cpl_MApp_Requests_h_
This template class represents a service request message to a particular server.
Definition RequestMessage.h:34
This concrete template class represents the interface to a ITC Service Access Point (SAP).
Definition SAP.h:30
Payload for Message:
Definition Requests.h:161
size_t numElements
OUTPUT: Number of items returned.
Definition Requests.h:170
Payload(Cpl::MApp::MAppApi **list, size_t maxElems)
Constructor.
Definition Requests.h:174
size_t dstMaxElements
INPUT/OUTPUT: Maximum number of elements that can be stored in 'dstList'. Set to zero for the 'overfl...
Definition Requests.h:167
Cpl::MApp::MAppApi ** dstList
INPUT/OUTPUT: Memory to store the returned list.
Definition Requests.h:164
This abstract class define ITC message type and payload for the application to get list of all of the...
Definition Requests.h:153
virtual void request(GetAvailableMAppMsg &msg)=0
Request: GetAvailable message.
Cpl::Itc::SAP< GetAvailableMAppRequest > SAP
SAP for this API.
Definition Requests.h:156
virtual ~GetAvailableMAppRequest()
Virtual Destructor.
Definition Requests.h:186
Cpl::Itc::RequestMessage< GetAvailableMAppRequest, Payload > GetAvailableMAppMsg
Message Type: GetAvailable.
Definition Requests.h:179
Payload for Message:
Definition Requests.h:204
Payload(Cpl::MApp::MAppApi **list, size_t maxElems)
Constructor.
Definition Requests.h:217
Cpl::MApp::MAppApi ** dstList
INPUT/OUTPUT: Memory to store the returned list.
Definition Requests.h:207
size_t dstMaxElements
INPUT/OUTPUT: Maximum number of elements that can be stored in 'dstList'. Set to zero for the 'overfl...
Definition Requests.h:210
size_t numElements
OUTPUT: Number of items returned.
Definition Requests.h:213
This abstract class define ITC message type and payload for the application to Get a list of started ...
Definition Requests.h:196
Cpl::Itc::SAP< GetStartedMAppRequest > SAP
SAP for this API.
Definition Requests.h:199
Cpl::Itc::RequestMessage< GetStartedMAppRequest, Payload > GetStartedMAppMsg
Message Type: GetStarted.
Definition Requests.h:222
virtual ~GetStartedMAppRequest()
Virtual Destructor.
Definition Requests.h:229
virtual void request(GetStartedMAppMsg &msg)=0
Request: GetStarted message.
Payload for Message:
Definition Requests.h:246
Payload(const char *nameToLookup)
Constructor.
Definition Requests.h:256
const char * name
INPUT: Name of the MApp instance to lookup.
Definition Requests.h:249
MAppApi * foundInstance
OUTPUT: Found instance (or null if not found)
Definition Requests.h:252
This abstract class define ITC message type and payload for the application to look-up a MApp by name...
Definition Requests.h:238
virtual void request(LookupMAppMsg &msg)=0
Request: Lookup message.
Cpl::Itc::RequestMessage< LookupMAppRequest, Payload > LookupMAppMsg
Message Type: Lookup.
Definition Requests.h:261
Cpl::Itc::SAP< LookupMAppRequest > SAP
SAP for this API.
Definition Requests.h:241
virtual ~LookupMAppRequest()
Virtual Destructor.
Definition Requests.h:268
This abstract class defines the interface for a Micro Application (MApp).
Definition MAppApi.h:37
Payload for Message: GetLaMApp.
Definition Requests.h:32
const char * mappName
INPUT: The name of the MApp to run.
Definition Requests.h:35
char * mappArgs
INPUT: Optional 'command line' arguments for the MApp.
Definition Requests.h:38
Payload(const char *name, char *args)
Constructor.
Definition Requests.h:48
bool success
OUTPUT: results true = MApp was found and started false = no such MApp.
Definition Requests.h:44
This abstract class define ITC message type and payload for the application to start a MApp.
Definition Requests.h:24
Cpl::Itc::RequestMessage< StartMAppRequest, Payload > StartMAppMsg
Message Type: Start.
Definition Requests.h:57
virtual ~StartMAppRequest()
Virtual Destructor.
Definition Requests.h:64
Cpl::Itc::SAP< StartMAppRequest > SAP
SAP for this API.
Definition Requests.h:27
virtual void request(StartMAppMsg &msg)=0
Request: Start message.
Payload for Message: StopMApp (No actual Data -->just a type name)
Definition Requests.h:126
Payload()
Constructor.
Definition Requests.h:129
This abstract class define ITC message type and payload for the application to stop the current MApp.
Definition Requests.h:118
Cpl::Itc::RequestMessage< StopAllMAppRequest, Payload > StopAllMAppMsg
Message Type: Stop.
Definition Requests.h:136
virtual ~StopAllMAppRequest()
Virtual Destructor.
Definition Requests.h:143
Cpl::Itc::SAP< StopAllMAppRequest > SAP
SAP for this API.
Definition Requests.h:121
virtual void request(StopAllMAppMsg &msg)=0
Request: Stop message.
Payload for Message: StopMApp.
Definition Requests.h:82
bool success
OUTPUT: results true = the MApp was stopped false = the specified MApp was not the started state.
Definition Requests.h:91
Payload(const char *name)
Constructor.
Definition Requests.h:95
const char * mappName
INPUT: The name of the MApp to stop.
Definition Requests.h:85
This abstract class define ITC message type and payload for the application to stop the current MApp.
Definition Requests.h:74
Cpl::Itc::RequestMessage< StopMAppRequest, Payload > StopMAppMsg
Message Type: Stop.
Definition Requests.h:103
Cpl::Itc::SAP< StopMAppRequest > SAP
SAP for this API.
Definition Requests.h:77
virtual void request(StopMAppMsg &msg)=0
Request: Stop message.
virtual ~StopMAppRequest()
Virtual Destructor.
Definition Requests.h:110
The 'Cpl' namespace is the root name space for the Colony.
Definition Api16.h:20