ACE_Registry::Object Class Reference

An object representation. More...

#include <Registry.h>

List of all members.

Public Member Functions

 Object (void *data=0, u_long size=0, u_long type=REG_NONE)
 Default constructor.

void data (void *data)
 Set data.

void * data (void) const
 Get data.

void size (u_long size)
 Set size.

u_long size (void) const
 Get size.

void type (u_long type)
 Set type.

u_long type (void) const
 Get type.

Private Attributes

void * data_
 Pointer to data.

u_long size_
 Size of the data.

u_long type_
 Type of data.

Detailed Description

An object representation.

In CORBA, all objects inherit from (CORBA::Object). For the registry, this is used as a wrapper for an instance of a built-in data type. Think about an object as being similar to a file in a file system.

Definition at line 133 of file Registry.h.

Constructor & Destructor Documentation

ACE_Registry::Object::Object void *  data = 0,
u_long  size = 0,
u_long  type = REG_NONE

Default constructor.

Definition at line 124 of file Registry.cpp.

00127   : data_ (data),
00128     size_ (size),
00129     type_ (type)
00130 {
00131 }

Member Function Documentation

void * ACE_Registry::Object::data void   )  const

Get data.

Definition at line 142 of file Registry.cpp.

00143 {
00144   return this->data_;
00145 }

void ACE_Registry::Object::data void *  data  ) 

Set data.

Definition at line 135 of file Registry.cpp.

Referenced by ACE_Registry::Naming_Context::bind(), and ACE_Registry::Naming_Context::resolve().

00136 {
00137   this->data_ = data;
00138 }

u_long ACE_Registry::Object::size void   )  const

Get size.

Definition at line 156 of file Registry.cpp.

00157 {
00158   return this->size_;
00159 }

void ACE_Registry::Object::size u_long  size  ) 

Set size.

Definition at line 149 of file Registry.cpp.

Referenced by ACE_Registry::Naming_Context::bind(), ACE_Registry_Name_Space::resolve(), and ACE_Registry::Naming_Context::resolve().

00150 {
00151   this->size_ = size;
00152 }

u_long ACE_Registry::Object::type void   )  const

Get type.

Definition at line 170 of file Registry.cpp.

00171 {
00172   return this->type_;
00173 }

void ACE_Registry::Object::type u_long  type  ) 

Set type.

Definition at line 163 of file Registry.cpp.

Referenced by ACE_Registry::Naming_Context::bind(), and ACE_Registry::Naming_Context::resolve().

00164 {
00165   this->type_ = type;
00166 }

Member Data Documentation

void* ACE_Registry::Object::data_ [private]

Pointer to data.

Definition at line 161 of file Registry.h.

u_long ACE_Registry::Object::size_ [private]

Size of the data.

Definition at line 164 of file Registry.h.

u_long ACE_Registry::Object::type_ [private]

Type of data.

Definition at line 167 of file Registry.h.

The documentation for this class was generated from the following files:
Generated on Thu Nov 9 11:28:05 2006 for ACE by doxygen 1.3.6