|
Clay Library
1.0.1
|
Functions | |
| std::string | clay::lib::GetTimeStr () |
| void | clay::lib::Log (const char *sMsg) |
| clay::core::ClayServiceAgent * | clay::lib::GetAgent () |
| void | clay::lib::SetAgent (void *pAgent) |
| int | clay::lib::RegisterSp (clay::core::ClayServiceProvider *pServiceProvider) |
| int | clay::lib::GetSpCount () |
| clay::core::ClayServiceProvider * | clay::lib::GetProvider (int iSpCode) |
| clay::core::ClayServiceProvider * | clay::lib::GetProvider (const std::string &sSpName) |
| bool | clay::lib::ProviderExists (int iSpCode) |
| bool | clay::lib::ProviderExists (const std::string &sSpName) |
| bool | clay::lib::ServiceExists (int iSpCode, int iSvcCode) |
| bool | clay::lib::ServiceExists (int iSpCode, const std::string &sSvcName) |
| bool | clay::lib::ServiceExists (const std::string &sSpName, int iSvcCode) |
| bool | clay::lib::ServiceExists (const std::string &sSpName, const std::string &sSvcName) |
| int | clay::lib::CallService (int iSpCode, int iSvcCode, void *pParam=NULL) |
| int | clay::lib::CallService (int iSpCode, const std::string &sSvcName, void *pParam=NULL) |
| int | clay::lib::CallService (const std::string &sSpName, int iSvcCode, void *pParam=NULL) |
| int | clay::lib::CallService (const std::string &sSpName, const std::string &sSvcName, void *pParam=NULL) |
| void | clay::lib::Clear () |
| Remove all service providers. | |
| int clay::lib::CallService | ( | int | iSpCode, |
| int | iSvcCode, | ||
| void * | pParam = NULL |
||
| ) |
Execute the service function by the provider code and the service code
| iSpCode | The provider code |
| iSvcCode | The service code |
| pParam | The parameter passed to the service function |
| int clay::lib::CallService | ( | int | iSpCode, |
| const std::string & | sSvcName, | ||
| void * | pParam = NULL |
||
| ) |
Execute the service function by the provider code and the service name
| iSpCode | The provider code |
| sSvcName | The service name |
| pParam | The parameter passed to the service function |
| int clay::lib::CallService | ( | const std::string & | sSpName, |
| int | iSvcCode, | ||
| void * | pParam = NULL |
||
| ) |
Execute the service function by the provider name and the service code
| sSpName | The provider name |
| iSvcCode | The service code |
| pParam | The parameter passed to the service function |
| int clay::lib::CallService | ( | const std::string & | sSpName, |
| const std::string & | sSvcName, | ||
| void * | pParam = NULL |
||
| ) |
Execute the service function by the provider name and the service name
| sSpName | The provider name |
| sSvcName | The service name |
| pParam | The parameter passed to the service function |
| clay::core::ClayServiceAgent* clay::lib::GetAgent | ( | ) |
Get current active service agent
| clay::core::ClayServiceProvider* clay::lib::GetProvider | ( | int | iSpCode) |
Get the service provider by its code
| iSpCode | The code of the service provider |
| clay::core::ClayServiceProvider* clay::lib::GetProvider | ( | const std::string & | sSpName) |
Get the service provider by its name
| sSpName | The name of the service provider |
| int clay::lib::GetSpCount | ( | ) |
Get the count of the registered service providers
| std::string clay::lib::GetTimeStr | ( | ) |
Get system time as a simple string
| void clay::lib::Log | ( | const char * | sMsg) |
Write a message to log file
| sMsg | The message |
| bool clay::lib::ProviderExists | ( | int | iSpCode) |
Check the existence of the service provider by its code
| iSpCode | The code of the service provider |
| bool clay::lib::ProviderExists | ( | const std::string & | sSpName) |
Check the existence of the service provider by its name
| sSpName | The name of the service provider |
| int clay::lib::RegisterSp | ( | clay::core::ClayServiceProvider * | pServiceProvider) |
Register a service provider
| pServiceProvider | The pointer of the service provider |
| bool clay::lib::ServiceExists | ( | int | iSpCode, |
| int | iSvcCode | ||
| ) |
Check the existence of the service by provider code and service code
| iSpCode | The provider code |
| iSvcCode | The service code |
| bool clay::lib::ServiceExists | ( | int | iSpCode, |
| const std::string & | sSvcName | ||
| ) |
Check the existence of the service by provider code and service name
| iSpCode | The provider code |
| sSvcName | The service name |
| bool clay::lib::ServiceExists | ( | const std::string & | sSpName, |
| int | iSvcCode | ||
| ) |
Check the existence of the service by provider name and service code
| sSpName | The provider name |
| iSvcCode | The service code |
| bool clay::lib::ServiceExists | ( | const std::string & | sSpName, |
| const std::string & | sSvcName | ||
| ) |
Check the existence of the service by provider name and service name
| sSpName | The provider name |
| sSvcName | The service name |
| void clay::lib::SetAgent | ( | void * | pAgent) |
Set current active service agent
| pAgent | The pointer of a service agent |
1.8.4