#include <acsexmplBuildingImpl.h>
Public Member Functions | |
Building (const ACE_CString &name, maci::ContainerServices *containerServices) | |
virtual | ~Building () |
virtual void | openFrontDoor () |
virtual void | closeFrontDoor () |
virtual ACS::ROstring_ptr | version () |
virtual void | execute () |
virtual void | cleanUp () |
Private Member Functions | |
void | operator= (const Building &) |
Private Attributes | |
baci::SmartPropertyPointer < baci::ROstring > | m_version_sp |
acsexmplBuilding::Door_var | m_door_p |
Implements an hierarchical device using Door Door. This class implements an example device "Building". The purpose is to show the implementation of hierarchical devices. Building has two methods: openFrontDoor() and closeFrontDoor(). It also provides one property, version, which is just the version of Building being used. Building does not have any Door members, but instead uses the ContainerServices to activate a door whenever calls to these methods are made. Since this device has only synchronous methods, we do not inherit from the ActionImplementator class and we do not implement the invokeAction method.
Building::Building | ( | const ACE_CString & | name, | |
maci::ContainerServices * | containerServices | |||
) |
Constructor
poa | Poa which will activate this and also all other components. | |
name | component's name. This is also the name that will be used to find the configuration data for the component in the Configuration Database. |