IT_Bus::FaultSource Class Reference

#include <it_bus/fault_exception.h>

Inheritance diagram for IT_Bus::FaultSource:

IT_Bus::AnySimpleType IT_Bus::AnyType IT_Bus::ImplementationDetails List of all members.

Detailed Description

Class representing the source of a system fault There are 3 possible sources of a fault which is represented by an enum.

The possible values are CLIENT, SERVER or UNKNOWN

Definition at line 123 of file fault_exception.h.

Public Types

enum  Source

Public Member Functions

virtual void write_value (AnySimpleTypeWriter &writer) const throw ((SerializationException))
 Write the instance value.
virtual void read_value (AnySimpleTypeReader &reader) throw ((DeserializationException))
 Read the value into the instance.
virtual const QNameget_type () const
 Returns the IT_Bus::QName for the type.
FaultSourceoperator= (const FaultSource &rhs)
virtual AnyTypecopy (const AnyType &assign)
 Returns a reference to an AnyType that is a copy of the AnyType parameter.
void set_value (const Source value)
 Set the enum value for the source.
Source get_value () const
 Get the enum value for the source.

Private Attributes

Source m_val

Static Private Attributes

static const QName m_type


Member Function Documentation

virtual void IT_Bus::FaultSource::write_value ( AnySimpleTypeWriter writer  )  const throw ((SerializationException)) [virtual]

Write the instance value.

Derived classes implement this method.

Implements IT_Bus::AnySimpleType.

virtual void IT_Bus::FaultSource::read_value ( AnySimpleTypeReader reader  )  throw ((DeserializationException)) [virtual]

Read the value into the instance.

Derived classes implement this method.

Implements IT_Bus::AnySimpleType.

virtual const QName& IT_Bus::FaultSource::get_type (  )  const [virtual]

Returns the IT_Bus::QName for the type.

Derived subclasses implement this method and return their QName.

Returns:
IT_Bus::QName.

Implements IT_Bus::AnyType.

virtual AnyType& IT_Bus::FaultSource::copy ( const AnyType assign  )  [virtual]

Returns a reference to an AnyType that is a copy of the AnyType parameter.

Derived classes override this method, providing an appropriate implementation. In this base class, this method is not supported; an exception is always thrown.

Parameters:
AnyType to be copied.
Returns:
A reference to AnyType.
Exceptions:
IT_Bus::Exception with message "Copy not supported"

Reimplemented from IT_Bus::AnyType.

void IT_Bus::FaultSource::set_value ( const Source  value  ) 

Set the enum value for the source.

Parameters:
const FaultSource enum value

Source IT_Bus::FaultSource::get_value (  )  const

Get the enum value for the source.

Returns:
FaultSource enum value


Generated on Tue Mar 20 15:28:00 2007 for Artix by  doxygen 1.5.1-p1