IoTivity C++ SDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OIC::Service::BundleActivator Class Referenceabstract

This class represents Bundle to be activated by container. More...

Public Member Functions

 BundleActivator ()
 Constructor for BundleActivator. More...
 
virtual ~BundleActivator ()
 Virtual destructor for BundleActivator. More...
 
virtual void activateBundle (ResourceContainerBundleAPI *resourceContainer, std::string bundleId)=0
 Activate the Bundle to make bundle work and create bundle resources. More...
 
virtual void deactivateBundle ()=0
 Deactivate the Bundle to stop working and destroy bundle resources. More...
 
virtual void createResource (resourceInfo resourceInfo)=0
 Create Bundle Resource instance and register the resource in the container. More...
 
virtual void destroyResource (BundleResource::Ptr pBundleResource)=0
 Unregister the resource in the container and destroy the Bundle Resource. More...
 

Detailed Description

This class represents Bundle to be activated by container.

Constructor & Destructor Documentation

OIC::Service::BundleActivator::BundleActivator ( )
inline

Constructor for BundleActivator.

virtual OIC::Service::BundleActivator::~BundleActivator ( )
inlinevirtual

Virtual destructor for BundleActivator.

Member Function Documentation

virtual void OIC::Service::BundleActivator::activateBundle ( ResourceContainerBundleAPI resourceContainer,
std::string  bundleId 
)
pure virtual

Activate the Bundle to make bundle work and create bundle resources.

Parameters
resourceContainerResourceContainer which registers the bundle
bundleIdAssigned id for the bundle
Returns
void
virtual void OIC::Service::BundleActivator::createResource ( resourceInfo  resourceInfo)
pure virtual

Create Bundle Resource instance and register the resource in the container.

Parameters
resourceInfoInformation of the bundle resource to be created
Returns
void
virtual void OIC::Service::BundleActivator::deactivateBundle ( )
pure virtual

Deactivate the Bundle to stop working and destroy bundle resources.

Returns
void
virtual void OIC::Service::BundleActivator::destroyResource ( BundleResource::Ptr  pBundleResource)
pure virtual

Unregister the resource in the container and destroy the Bundle Resource.

Parameters
pBundleResourceBundle resource to be destroyed
Returns
void

The documentation for this class was generated from the following file: