#include <stdexcept>
#include <vhdRuntime/vhdServiceHandle.h>
#include <vhdRuntime/vhdRuntimeEngine.h>
#include <vhdRuntime/vhdServiceContext.h>
#include <vhdRuntime/vhdServiceHead.h>
#include <vhdRuntime/vhdServiceBody.h>
#include <vhdRuntime/vhdServiceManager.h>
#include <vhdRuntime/vhdServiceRuntimeID.h>
#include <vhdRuntime/vhdServiceConfigProperty.h>
#include <vhdRuntime/vhdIServiceInterface.h>
#include <vhdRuntime/vhdProvidedServiceInterface.h>
#include <vhdRuntime/vhdRequiredServiceInterface.h>
#include <vhdRuntime/vhdEventManager.h>
#include <vhdContainers/vhdArgSet.h>
#include <vhdProperty/vhdProperty.h>
#include <vhdProperty/vhdPropertyTreeIterator.h>
#include <vhdEvents/vhdEvent.h>
#include <vhdEvents/vhdEventPublisher.h>
#include <vhdEvents/vhdEventReceiver.h>
#include <vhdEvents/vhdEventDispatcher.h>
#include <vhdEvents/vhdTerminateServiceRequestEvent.h>
#include <vhdFundamental/vhdIClock.h>
#include <vhdFundamental/vhdClock.h>
#include <vhdFundamental/vhdWarpClock.h>
#include <vhdFundamental/vhdDiag.h>
#include <vhdExceptions/vhdIllegalArgumentException.h>
#include <vhdExceptions/vhdIllegalOperationException.h>
#include <vhdExceptions/vhdMemoryAllocationError.h>
Classes | |
class | vhdServiceHandle::_Impl |
Defines | |
#define | vhdSERVICE_HANDLE_TRY_CATCH(prefixMsg, statement) |
#define | _VHD_METHOD_NAME "vhdServiceHandle::vhdServiceHandle( vhdServiceHeadRef serviceHead, vhdServiceBodyRef serviceBody, vhdArgSetRef serviceLoaderArgSet)" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::~vhdServiceHandle()" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::getServiceClassName()" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::getServiceName()" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::getServiceLoaderArgSet()" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::hasServiceContext()" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::isLocal()" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::getServiceHead()" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::getServiceBody()" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::getServiceContext()" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::getServiceRuntimeID()" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::getServiceInterface( const std::string & serviceInterfaceName)" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::getServiceInterfaces()" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::isScheduled()" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::isInitialized()" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::isRunning()" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::tryInit()" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::tryRun()" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::tryFreeze()" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::tryTerminate()" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::update()" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::isUpdating()" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::getEventReceiverName()" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::handleEvent( vhdEventRef event)" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::getLastInitTimeStamp() const" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::getLastRunTimeStamp() const " |
#define | _VHD_METHOD_NAME "vhdServiceHandle::getLastFreezeTimeStamp() const " |
#define | _VHD_METHOD_NAME "vhdServiceHandle::getLastTerminateTimeStamp() const " |
#define | _VHD_METHOD_NAME "vhdServiceHandle::getAfterInitRunDuration() const" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::getAfterInitUpdateDuration() const" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::getLastUpdateTimeStamp() const" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::getLastUpdateDuration() const" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::_handleWarpClockExchange( const std::string & warpClockName, vhdWarpClockRef warpClock)" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::_handleAddService( vhdServiceHandleRef serviceHandle)" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::_handleRemoveService( vhdServiceHandleRef serviceHandle)" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::_handleServiceStateChange( vhdServiceHandleRef serviceHandle)" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::_handleAddProperty( vhdPropertyRef property)" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::_handleRemoveProperty( vhdPropertyRef property)" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::_handlePropertyChange( vhdPropertyRef property)" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::_init( vhdRuntimeEngineRef runtimeEngine, vhdServiceRuntimeIDRef serviceRuntimeID, vhdServiceConfigPropertyRef serviceConfigProperty)" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::_terminate()" |
#define | _VHD_METHOD_NAME "vhdServiceHandle::_setScheduledFlag( vhtBool scheduledFlag)" |
Functions | |
catch (std::length_error &e) | |
catch (std::domain_error &e) | |
catch (std::out_of_range &e) | |
catch (std::invalid_argument &e) | |
catch (std::logic_error &e) | |
catch (std::bad_alloc &e) | |
catch (std::bad_exception &e) | |
catch (std::ios_base::failure &e) | |
catch (std::range_error &e) | |
catch (std::overflow_error &e) | |
catch (std::underflow_error &e) | |
catch (std::runtime_error &e) | |
catch (std::exception &e) | |
catch (...) | |
vhdCLASS_TYPE_INIT (vhdServiceHandle, vhdObject) | |
vhdServiceHandle::vhdServiceHandle (vhdServiceHeadRef serviceHead, vhdServiceBodyRef serviceBody, vhdArgSetRef serviceLoaderArgSet) | |
vhdServiceHandle::~vhdServiceHandle () | |
const std::string & | vhdServiceHandle::getServiceClassName () const |
const std::string & | vhdServiceHandle::getServiceName () const |
vhdArgSetRef | vhdServiceHandle::getServiceLoaderArgSet () const |
vhtBool | vhdServiceHandle::hasServiceContext () const |
vhtBool | vhdServiceHandle::isLocal () const |
vhdServiceHeadRef | vhdServiceHandle::getServiceHead () const |
vhdServiceBodyRef | vhdServiceHandle::getServiceBody () const |
vhdServiceContextRef | vhdServiceHandle::getServiceContext () const |
vhdServiceRuntimeIDRef | vhdServiceHandle::getServiceRuntimeID () const |
vhdIServiceInterfaceRef | vhdServiceHandle::getServiceInterface (const std::string &serviceInterfaceName) |
std::deque< vhdIServiceInterfaceRef > | vhdServiceHandle::getServiceInterfaces () |
vhtBool | vhdServiceHandle::isScheduled () const |
vhtBool | vhdServiceHandle::isInitialized () const |
vhtBool | vhdServiceHandle::isRunning () const |
vhtBool | vhdServiceHandle::tryInit () |
vhtBool | vhdServiceHandle::tryRun () |
vhtBool | vhdServiceHandle::tryFreeze () |
vhtBool | vhdServiceHandle::tryTerminate () |
void | vhdServiceHandle::update () |
vhtBool | vhdServiceHandle::isUpdating () const |
std::string | vhdServiceHandle::getEventReceiverName () |
void | vhdServiceHandle::handleEvent (vhdEventRef event) |
vhtTime | vhdServiceHandle::getLastInitTimeStamp () const |
vhtTime | vhdServiceHandle::getLastRunTimeStamp () const |
vhtTime | vhdServiceHandle::getLastFreezeTimeStamp () const |
vhtTime | vhdServiceHandle::getLastTerminateTimeStamp () const |
vhtTime | vhdServiceHandle::getAfterInitRunDuration () const |
vhtTime | vhdServiceHandle::getAfterInitUpdateDuration () const |
vhtTime | vhdServiceHandle::getLastUpdateTimeStamp () const |
vhtTime | vhdServiceHandle::getLastUpdateDuration () const |
void | vhdServiceHandle::_handleWarpClockExchange (const std::string &warpClockName, vhdWarpClockRef warpClock) |
void | vhdServiceHandle::_handleAddService (vhdServiceHandleRef serviceHandle) |
void | vhdServiceHandle::_handleRemoveService (vhdServiceHandleRef serviceHandle) |
void | vhdServiceHandle::_handleServiceStateChange (vhdServiceHandleRef serviceHandle) |
void | vhdServiceHandle::_handleAddProperty (vhdPropertyRef property) |
void | vhdServiceHandle::_handleRemoveProperty (vhdPropertyRef property) |
void | vhdServiceHandle::_handlePropertyChange (vhdPropertyRef property) |
void | vhdServiceHandle::_init (vhdRuntimeEngineRef runtimeEngine, vhdServiceRuntimeIDRef serviceRuntimeID, vhdServiceConfigPropertyRef serviceConfigProperty) |
void | vhdServiceHandle::_terminate () |
void | vhdServiceHandle::_setScheduledFlag (vhtBool scheduledFlag) |
#define _VHD_METHOD_NAME "vhdServiceHandle::_setScheduledFlag( vhtBool scheduledFlag)" |
#define _VHD_METHOD_NAME "vhdServiceHandle::_terminate()" |
#define _VHD_METHOD_NAME "vhdServiceHandle::_init( vhdRuntimeEngineRef runtimeEngine, vhdServiceRuntimeIDRef serviceRuntimeID, vhdServiceConfigPropertyRef serviceConfigProperty)" |
#define _VHD_METHOD_NAME "vhdServiceHandle::_handlePropertyChange( vhdPropertyRef property)" |
#define _VHD_METHOD_NAME "vhdServiceHandle::_handleRemoveProperty( vhdPropertyRef property)" |
#define _VHD_METHOD_NAME "vhdServiceHandle::_handleAddProperty( vhdPropertyRef property)" |
#define _VHD_METHOD_NAME "vhdServiceHandle::_handleServiceStateChange( vhdServiceHandleRef serviceHandle)" |
#define _VHD_METHOD_NAME "vhdServiceHandle::_handleRemoveService( vhdServiceHandleRef serviceHandle)" |
#define _VHD_METHOD_NAME "vhdServiceHandle::_handleAddService( vhdServiceHandleRef serviceHandle)" |
#define _VHD_METHOD_NAME "vhdServiceHandle::_handleWarpClockExchange( const std::string & warpClockName, vhdWarpClockRef warpClock)" |
#define _VHD_METHOD_NAME "vhdServiceHandle::getLastUpdateDuration() const" |
#define _VHD_METHOD_NAME "vhdServiceHandle::getLastUpdateTimeStamp() const" |
#define _VHD_METHOD_NAME "vhdServiceHandle::getAfterInitUpdateDuration() const" |
#define _VHD_METHOD_NAME "vhdServiceHandle::getAfterInitRunDuration() const" |
#define _VHD_METHOD_NAME "vhdServiceHandle::getLastTerminateTimeStamp() const " |
#define _VHD_METHOD_NAME "vhdServiceHandle::getLastFreezeTimeStamp() const " |
#define _VHD_METHOD_NAME "vhdServiceHandle::getLastRunTimeStamp() const " |
#define _VHD_METHOD_NAME "vhdServiceHandle::getLastInitTimeStamp() const" |
#define _VHD_METHOD_NAME "vhdServiceHandle::handleEvent( vhdEventRef event)" |
#define _VHD_METHOD_NAME "vhdServiceHandle::getEventReceiverName()" |
#define _VHD_METHOD_NAME "vhdServiceHandle::isUpdating()" |
#define _VHD_METHOD_NAME "vhdServiceHandle::update()" |
#define _VHD_METHOD_NAME "vhdServiceHandle::tryTerminate()" |
#define _VHD_METHOD_NAME "vhdServiceHandle::tryFreeze()" |
#define _VHD_METHOD_NAME "vhdServiceHandle::tryRun()" |
#define _VHD_METHOD_NAME "vhdServiceHandle::tryInit()" |
#define _VHD_METHOD_NAME "vhdServiceHandle::isRunning()" |
#define _VHD_METHOD_NAME "vhdServiceHandle::isInitialized()" |
#define _VHD_METHOD_NAME "vhdServiceHandle::isScheduled()" |
#define _VHD_METHOD_NAME "vhdServiceHandle::getServiceInterfaces()" |
#define _VHD_METHOD_NAME "vhdServiceHandle::getServiceInterface( const std::string & serviceInterfaceName)" |
#define _VHD_METHOD_NAME "vhdServiceHandle::getServiceRuntimeID()" |
#define _VHD_METHOD_NAME "vhdServiceHandle::getServiceContext()" |
#define _VHD_METHOD_NAME "vhdServiceHandle::getServiceBody()" |
#define _VHD_METHOD_NAME "vhdServiceHandle::getServiceHead()" |
#define _VHD_METHOD_NAME "vhdServiceHandle::isLocal()" |
#define _VHD_METHOD_NAME "vhdServiceHandle::hasServiceContext()" |
#define _VHD_METHOD_NAME "vhdServiceHandle::getServiceLoaderArgSet()" |
#define _VHD_METHOD_NAME "vhdServiceHandle::getServiceName()" |
#define _VHD_METHOD_NAME "vhdServiceHandle::getServiceClassName()" |
#define _VHD_METHOD_NAME "vhdServiceHandle::~vhdServiceHandle()" |
#define _VHD_METHOD_NAME "vhdServiceHandle::vhdServiceHandle( vhdServiceHeadRef serviceHead, vhdServiceBodyRef serviceBody, vhdArgSetRef serviceLoaderArgSet)" |
#define vhdSERVICE_HANDLE_TRY_CATCH | ( | prefixMsg, | |||
statement | ) |
Value:
try { statement; } \ /* VHD++++ exceptions */ \ catch ( vhdRefException & e) { vhdDIAG_CRITICAL( prefixMsg <<"VHD++ Exception: vhdRefException: " << e.getMessage()); } \ catch ( vhdError & e) { vhdDIAG_CRITICAL( prefixMsg << "VHD++ Exception: vhdError: " << e.getMessage()); } \ catch ( vhdThrowable & e) { vhdDIAG_CRITICAL( prefixMsg << "VHD++ Exception: vhdThrowable: " << e.getMessage()); } \
catch | ( | ... | ) |
catch | ( | std::exception & | e | ) |
catch | ( | std::runtime_error & | e | ) |
catch | ( | std::underflow_error & | e | ) |
catch | ( | std::overflow_error & | e | ) |
catch | ( | std::range_error & | e | ) |
catch | ( | std::ios_base::failure & | e | ) |
catch | ( | std::bad_exception & | e | ) |
catch | ( | std::bad_alloc & | e | ) |
catch | ( | std::logic_error & | e | ) |
catch | ( | std::invalid_argument & | e | ) |
catch | ( | std::out_of_range & | e | ) |
catch | ( | std::domain_error & | e | ) |
catch | ( | std::length_error & | e | ) |
vhdCLASS_TYPE_INIT | ( | vhdServiceHandle | , | |
vhdObject | ||||
) |