Public Member Functions | Private Member Functions

ErrorComponent Class Reference
[ACS Components Examples]

#include <acsexmplErrorComponentImpl.h>

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

List of all members.

Public Member Functions

 ErrorComponent (const ACE_CString &name, maci::ContainerServices *containerServices)
virtual ~ErrorComponent ()
virtual void displayMessage ()
virtual void badMethod (CORBA::Short depth)
virtual void exceptionFromCompletion (CORBA::Short depth)
virtual void typeException (CORBA::Short depth)
virtual void corbaSystemException ()
virtual ACSErr::CompletioncompletionFromException (CORBA::Short depth)
virtual ACSErr::CompletioncompletionFromCompletion (CORBA::Short depth)
ACSErr::CompletioncompletionOnStack (CORBA::Short depth)
void outCompletion (ACSErr::Completion_out comp)
void generateSIGFPE (CORBA::Short way)
void generateSIGSEGV (CORBA::Short way)
void sleepingCmd (CORBA::Short nb_seconds)

Private Member Functions

virtual ACSErr::CompletionImplcreateCompletion (unsigned short depth)
virtual void buildErrorTrace (unsigned short depth)

Detailed Description

This class shows how to deal with errors in components.

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_acsexmplErrorComponent::ErrorComponent which is a class automatically generated by CORBA from ErrorComponent's IDL file.

Version:
"@(#) $Id: acsexmplErrorComponentImpl.h,v 1.13 2010/11/10 16:58:09 rbourtem Exp $"

Constructor & Destructor Documentation

ErrorComponent::ErrorComponent ( 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.

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