Public Member Functions | Private Member Functions | Private Attributes

Building Class Reference
[ACS Components Examples]

#include <acsexmplBuildingImpl.h>

Inheritance diagram for Building:
Inheritance graph
[legend]
Collaboration diagram for Building:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

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.

Version:
"@(#) $Id: acsexmplBuildingImpl.h,v 1.108 2008/10/09 08:41:11 cparedes Exp $"

Constructor & Destructor Documentation

Building::Building ( const ACE_CString &  name,
maci::ContainerServices containerServices 
)

Constructor

Parameters:
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.

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