ALMA Computing Group

HelloWorld Class Reference
[ACS Components Examples]

This class shows how to make an ACS Hello World component. More...

#include <acsexmplHelloWorldImpl.h>

List of all members.

Public Member Functions

 HelloWorld (const ACE_CString &name, maci::ContainerServices *containerServices)
 Constructor.
virtual ~HelloWorld ()
 Destructor.
virtual void displayMessage ()
 Displays "Hello World" to the console.
virtual void badMethod ()
 Simple method raises a remote exception within the calling client.


Detailed Description

This class shows how to make an ACS Hello World component.

It provides one synchronous method: displayMessage() which just prints "Hello World" to the command-line where the container that activated an instance of this component was started from. badMethod() is a trivial method showing developers how to raise ACS (i.e., CORBA) exceptions.

All components should inherit from CharacteristicComponentImpl or it's superclass, ACSComponentImpl, to remain compatiable with ACS tools such as objexp (i.e., a GUI used to manipulate components). This class also derives from POA_acsexmplHelloWorld::HelloWorld which is a class automatically generated by CORBA from HelloWorld's IDL file.

Version:
"@(#) $Id: acsexmplHelloWorldImpl.h,v 1.98 2008/10/01 04:30:47 cparedes Exp $"

Definition at line 108 of file acsexmplHelloWorldImpl.h.


Constructor & Destructor Documentation

HelloWorld::HelloWorld const ACE_CString &  name,
maci::ContainerServices *  containerServices
 

Constructor.

Parameters:
poa Poa which will activate this and also all other components. Developers need not be concerned with what a PortableServer does...just pass it to the superclass's constructor.
name component's name. All components have a name associated with them so other components and clients can access them.
Definition at line 39 of file acsexmplHelloWorldImpl.cpp.

HelloWorld::~HelloWorld  )  [virtual]
 

Destructor.

Definition at line 48 of file acsexmplHelloWorldImpl.cpp.


Member Function Documentation

void HelloWorld::badMethod  )  [virtual]
 

Simple method raises a remote exception within the calling client.

Implementation of IDL badMethod().

Exceptions:
ACSErrTypeCommon::UnknownEx 

Definition at line 62 of file acsexmplHelloWorldImpl.cpp.

void HelloWorld::displayMessage  )  [virtual]
 

Displays "Hello World" to the console.

Implementation of IDL displayMessage().


Definition at line 56 of file acsexmplHelloWorldImpl.cpp.


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