Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

Omniifr::SequenceDef_impl Class Reference

#include <SequenceDef.h>

Inheritance diagram for Omniifr::SequenceDef_impl:

Inheritance graph
[legend]
Collaboration diagram for Omniifr::SequenceDef_impl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

CORBA::ULong bound ()
void bound (CORBA::ULong v)
CORBA::TypeCode_ptr element_type ()
CORBA::IDLType_ptr element_type_def ()
void element_type_def (CORBA::IDLType_ptr v)
CORBA::DefinitionKind def_kind ()
CORBA::TypeCode_ptr type ()
 SequenceDef_impl (ULong bound)
virtual ~SequenceDef_impl ()
void uncheckedDestroy ()
 Destroys this object, without first checking for dependencies.
void reincarnate (const PersistNode &node)
 Re-create the repository from information saved in the log file.
void output (ostream &os)
 Save this object's state to a stream.

Private Attributes

CORBA::ULong _bound
Dependency1< CORBA::IDLType > _element_type_def

Constructor & Destructor Documentation

Omniifr::SequenceDef_impl::SequenceDef_impl ULong  bound  ) 
 

Definition at line 52 of file SequenceDef.cc.

00053 : _bound(bound),
00054   _element_type_def(this)
00055 {
00056   Repository_impl::inst().addAnonymous(this);
00057 }

virtual Omniifr::SequenceDef_impl::~SequenceDef_impl  )  [inline, virtual]
 

Definition at line 53 of file SequenceDef.h.

00053 {}


Member Function Documentation

void Omniifr::SequenceDef_impl::bound CORBA::ULong  v  )  [inline]
 

Definition at line 39 of file SequenceDef.h.

References _bound, and Omniifr::IRObject_impl::checkReadonly().

00039 {checkReadonly(); _bound=v;}

CORBA::ULong Omniifr::SequenceDef_impl::bound  )  [inline]
 

Definition at line 38 of file SequenceDef.h.

References _bound.

00038 {return _bound;}

CORBA::DefinitionKind Omniifr::SequenceDef_impl::def_kind  )  [inline, virtual]
 

Implements Omniifr::IRObject_impl.

Definition at line 44 of file SequenceDef.h.

00044 {return dk_Sequence;}

TypeCode_ptr Omniifr::SequenceDef_impl::element_type  ) 
 

Definition at line 30 of file SequenceDef.cc.

References _element_type_def, and Omniifr::Dependency1< T_IRObject >::in().

Referenced by type().

00031 {
00032   return _element_type_def.in()->type();
00033 }

void Omniifr::SequenceDef_impl::element_type_def CORBA::IDLType_ptr  v  ) 
 

Definition at line 40 of file SequenceDef.cc.

References _element_type_def, Omniifr::Dependency1< T_IRObject >::assign(), and Omniifr::IRObject_impl::checkReadonly().

00041 {
00042   checkReadonly();
00043   _element_type_def.assign(CORBA::IDLType::_duplicate(v));
00044 }

IDLType_ptr Omniifr::SequenceDef_impl::element_type_def  ) 
 

Definition at line 35 of file SequenceDef.cc.

References _element_type_def, and Omniifr::Dependency1< T_IRObject >::copy().

00036 {
00037   return _element_type_def.copy();
00038 }

void Omniifr::SequenceDef_impl::output ostream &  os  )  [virtual]
 

Save this object's state to a stream.

Implements Omniifr::IRObject_impl.

Definition at line 73 of file SequenceDef.cc.

References _bound, _element_type_def, Omniifr::Dependency1< T_IRObject >::in(), and Omniifr::IRObject_impl::outputOid().

00074 {
00075   os<<"SequenceDef"<<PersistNode::_separator;
00076   outputOid(os);
00077   os<<"\n bound="<<_bound;
00078   PersistNode::outputIOR(os,_element_type_def.in(),"\n element_type_def=");
00079   os<<" ;;\n";
00080 }

void Omniifr::SequenceDef_impl::reincarnate const PersistNode node  )  [virtual]
 

Re-create the repository from information saved in the log file.

Reimplemented from Omniifr::IRObject_impl.

Definition at line 66 of file SequenceDef.cc.

References _element_type_def, and Omniifr::Dependency1< T_IRObject >::assign().

00067 {
00068   _element_type_def.assign(
00069     string_to_<CORBA::IDLType>(node.attrString("element_type_def").c_str())
00070   );
00071 }

TypeCode_ptr Omniifr::SequenceDef_impl::type  )  [virtual]
 

Implements Omniifr::IDLType_impl.

Definition at line 46 of file SequenceDef.cc.

References _bound, and element_type().

00047 {
00048   TypeCode_var tc=element_type();
00049   return Repository_impl::inst()._orb->create_sequence_tc(_bound,tc);
00050 }

void Omniifr::SequenceDef_impl::uncheckedDestroy  )  [virtual]
 

Destroys this object, without first checking for dependencies.

Implements Omniifr::IRObject_impl.

Definition at line 59 of file SequenceDef.cc.

References _element_type_def, and Omniifr::Dependency1< T_IRObject >::clear().

00060 {
00061   Repository_impl::inst().removeAnonymous(this);
00062   _element_type_def.clear();
00063 }


Member Data Documentation

CORBA::ULong Omniifr::SequenceDef_impl::_bound [private]
 

Definition at line 49 of file SequenceDef.h.

Referenced by bound(), output(), and type().

Dependency1<CORBA::IDLType> Omniifr::SequenceDef_impl::_element_type_def [private]
 

Definition at line 50 of file SequenceDef.h.

Referenced by element_type(), element_type_def(), output(), reincarnate(), and uncheckedDestroy().


The documentation for this class was generated from the following files:
Generated on Fri Mar 4 13:04:07 2005 for OmniIFR by  doxygen 1.4.1