ot_ior Class Reference

OT_LIB IOR class. More...

#include <ot_ior.h>

Inheritance diagram for ot_ior:

ot_obj

List of all members.

Public Types

enum  IORTYPE { NULL_IOR, INTERFACE, FUNCTION, ATTRIBUTE }

Public Member Functions

 ot_ior (void)
 ot_ior (const string &host, int port, IORTYPE type, const string &iPath)
 ot_ior (const ot_ior &c)
virtual ~ot_ior (void)
 Destructor.
ot_objdup (void) const
void asXml (ostream &s=cout, int i=0) const
bool asData (ostream &s) const
const string & getHost (void) const
 Get the interface element.
int getPort (void) const
const string & getInterfacePath (void) const
IORTYPE getIORType (void) const
ot_ioroperator= (const ot_ior &c)
 Assign op.
bool operator== (const ot_ior &c) const
 Eq op.
bool operator!= (const ot_ior &v)
 Operator !=.
bool operator== (const ot_obj *o) const
 Eq op.

Static Public Member Functions

static ot_ior null (void)

Private Attributes

string m_host
int m_port
IORTYPE m_type
 Identify the object type.
string m_iPath


Detailed Description

OT_LIB IOR class.

This class implement a NET OT objects.


Member Enumeration Documentation

Enumerator:
NULL_IOR 
INTERFACE 
FUNCTION 
ATTRIBUTE 


Constructor & Destructor Documentation

ot_ior::ot_ior ( void   ) 

Parameters:
size size of the array

ot_ior::ot_ior ( const string &  host,
int  port,
IORTYPE  type,
const string &  iPath 
)

Parameters:
obj Network object

ot_ior::ot_ior ( const ot_ior c  ) 

Copy constructor

Parameters:
c Object to copy

virtual ot_ior::~ot_ior ( void   )  [virtual]

Destructor.


Member Function Documentation

ot_obj* ot_ior::dup ( void   )  const [virtual]

Duplicate the object Clone the array and all the objects contained.

Returns:
The new object

Implements ot_obj.

void ot_ior::asXml ( ostream &  s = cout,
int  i = 0 
) const [virtual]

Print the XML rappresentation of object into string

Parameters:
s the output string
i The indent spaces

Implements ot_obj.

bool ot_ior::asData ( ostream &  s  )  const [virtual]

Build a binary image of object

Parameters:
s The output stream

Implements ot_obj.

const string& ot_ior::getHost ( void   )  const

Get the interface element.

Return the interface element

int ot_ior::getPort ( void   )  const

const string& ot_ior::getInterfacePath ( void   )  const

IORTYPE ot_ior::getIORType ( void   )  const

static ot_ior ot_ior::null ( void   )  [static]

ot_ior& ot_ior::operator= ( const ot_ior c  ) 

Assign op.

bool ot_ior::operator== ( const ot_ior c  )  const

Eq op.

bool ot_ior::operator!= ( const ot_ior v  ) 

Operator !=.

bool ot_ior::operator== ( const ot_obj o  )  const [inline, virtual]

Eq op.

Implements ot_obj.

References ot_obj::getType().


Member Data Documentation

string ot_ior::m_host [private]

int ot_ior::m_port [private]

Identify the object type.

Reimplemented from ot_obj.

string ot_ior::m_iPath [private]


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

Generated on Sun May 4 12:42:43 2008 for OT_LIB 4.1 by  doxygen 1.5.5