ALMA Computing Group
Public Member Functions | Private Member Functions | Private Attributes

Building Class Reference
[ACS Components Examples]

Implements an hierarchical device using Door Door. More...

#include <acsexmplBuildingImpl.h>

List of all members.

Public Member Functions

 Building (const ACE_CString &name, maci::ContainerServices *containerServices)
 Constructor.
virtual ~Building ()
 Destructor.
virtual void openFrontDoor ()
 Opens the FRONTDOOR Implementation of the IDL openFrontDoor() interface.
virtual void closeFrontDoor ()
 Closes the FRONTDOOR Implementation of the IDL closeFrontDoor() interface.
virtual ACS::ROstring_ptr version ()
 Returns a reference to the version property Implementation of IDL interface for the property.
virtual void execute ()
 Called after initialize to tell the component that it has to be ready to accept incoming functional calls any time.
virtual void cleanUp ()
 Called after the last functional call to the component has finished.

Private Member Functions

void operator= (const Building &)
 ALMA C++ coding standards state copy operators should be disabled.

Private Attributes

baci::SmartPropertyPointer
< baci::ROstring > 
m_version_sp
 m_version_sp is a string which shows the version of class Building being used.
acsexmplBuilding::Door_var m_door_p
 The door that belongs to this building.

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 $"

Definition at line 119 of file acsexmplBuildingImpl.h.


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.

Definition at line 58 of file acsexmplBuildingImpl.cpp.


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