Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

EasySoap::SOAPEntity Struct Reference

The structure corresponding to an entity. More...

#include <soap_structures.h>

List of all members.

Public Methods

 SOAPEntity ()
 SOAPEntity (const DALT_Client::Entity &e)
DALT_Client::EntitycreateEntity ()
bool operator== (const SOAPEntity &other) const
bool operator!= (const SOAPEntity &other) const

Public Attributes

int entity_id
SOAPString entity_type
SOAPArray<int> coordinates


Detailed Description

The structure corresponding to an entity.

A null entity is represented by an id of 0 and/or an empty type. The server will generate the entity ids starting with 1

Definition at line 41 of file soap_structures.h.


Constructor & Destructor Documentation

EasySoap::SOAPEntity::SOAPEntity ( ) [inline]
 

Definition at line 47 of file soap_structures.h.

00047 {}

EasySoap::SOAPEntity::SOAPEntity ( const DALT_Client::Entity & e ) [inline]
 

Parameters:
e  

Definition at line 48 of file soap_structures.h.

00049     {
00050         entity_id = e.id;
00051         entity_type = e.type.c_str();
00052         for(unsigned int i=0;i<e.coordinates.size();i++)
00053             coordinates.Add(e.coordinates[i]);
00054     }


Member Function Documentation

DALT_Client::Entity * EasySoap::SOAPEntity::createEntity ( ) [inline]
 

Definition at line 56 of file soap_structures.h.

00057     {
00058         vector<int> vec_coord;
00059         for(unsigned int i=0;i<coordinates.size();i++)
00060             vec_coord.push_back(coordinates[i]);
00061         return new DALT_Client::Entity(entity_type.Str(), entity_id, vec_coord);
00062     }

bool EasySoap::SOAPEntity::operator!= ( const SOAPEntity & other ) const [inline]
 

Parameters:
other  

Definition at line 71 of file soap_structures.h.

00072     {
00073         return entity_id != other.entity_id ||
00074         entity_type != other.entity_type ||
00075         !(coordinates == other.coordinates);
00076     }   

bool EasySoap::SOAPEntity::operator== ( const SOAPEntity & other ) const [inline]
 

Parameters:
other  

Definition at line 64 of file soap_structures.h.

00065     {
00066         return entity_id == other.entity_id &&
00067             entity_type == other.entity_type &&
00068             coordinates == other.coordinates;
00069     }


Member Data Documentation

SOAPArray< int > EasySoap::SOAPEntity::coordinates<int>
 

Definition at line 45 of file soap_structures.h.

int EasySoap::SOAPEntity::entity_id
 

Definition at line 43 of file soap_structures.h.

SOAPString EasySoap::SOAPEntity::entity_type
 

Definition at line 44 of file soap_structures.h.


The documentation for this struct was generated from the following file:
Generated at Thu Jan 31 15:20:25 2002 for DALT Client by doxygen1.2.8 written by Dimitri van Heesch, © 1997-2001