The EntityRef class is an identification of a persistant entity in the ALMA archive. More...
#include <EntityRef.h>
Public Member Functions | |
EntityRef () | |
EntityRef (const string &s) | |
EntityRef constructors. | |
EntityRef (IDLEntityRef &) | |
EntityRef (string entityId, string partId, string entityTypeName, string instanceVersion) | |
virtual | ~EntityRef () |
EntityRef destructor. | |
bool | operator== (const EntityRef &) const |
bool | equals (const EntityRef &) const |
bool | operator!= (const EntityRef &) const |
bool | isNull () const |
string | toString () const |
string | toXML () const throw (InvalidDataException) |
IDLEntityRef | toIDLEntityRef () const |
void | setFromXML (string xml) |
void | toBin (EndianOSStream &eoss) const |
Write the binary representation of this to a EndianOSStream. | |
EntityId | getEntityId () const |
Getters and Setters. | |
PartId | getPartId () const |
string | getEntityTypeName () const |
string | getInstanceVersion () const |
void | setEntityId (EntityId e) |
void | setPartId (PartId s) |
void | setEntityTypeName (string s) |
void | setInstanceVersion (string s) |
Static Public Member Functions | |
static EntityRef | getEntityRef (StringTokenizer &t) throw (InvalidArgumentException) |
static void | toBin (const vector< EntityRef > &entityRef, EndianOSStream &eoss) |
Write the binary representation of a vector of EntityRef to an EndianOSStream. | |
static EntityRef | fromBin (EndianIStream &eis) |
Read the binary representation of an EntityRef from a EndianIStream and use the read value to set an EntityRef. | |
static vector< EntityRef > | from1DBin (EndianIStream &eis) |
Read the binary representation of a vector of EntityRef from an EndianIStream and use the read value to set a vector of EntityRef. | |
Private Member Functions | |
string | getXMLValue (string xml, string parm) const |
string | validXML () const |
Private Attributes | |
EntityId | entityId |
PartId | partId |
string | entityTypeName |
string | instanceVersion |
Friends | |
ostream & | operator<< (ostream &, const EntityRef &) |
The EntityRef class is an identification of a persistant entity in the ALMA archive.
It easily maps onto an EntityRefT object in ACS system entities.
Definition at line 63 of file EntityRef.h.
asdm::EntityRef::EntityRef | ( | ) |
asdm::EntityRef::EntityRef | ( | const string & | s | ) | [inline] |
asdm::EntityRef::EntityRef | ( | IDLEntityRef & | ) |
asdm::EntityRef::EntityRef | ( | string | entityId, | |
string | partId, | |||
string | entityTypeName, | |||
string | instanceVersion | |||
) |
asdm::EntityRef::~EntityRef | ( | ) | [inline, virtual] |
EntityRef destructor.
Definition at line 142 of file EntityRef.h.
bool asdm::EntityRef::equals | ( | const EntityRef & | x | ) | const [inline] |
Definition at line 152 of file EntityRef.h.
static vector<EntityRef> asdm::EntityRef::from1DBin | ( | EndianIStream & | eis | ) | [static] |
Read the binary representation of a vector of EntityRef from an EndianIStream and use the read value to set a vector of EntityRef.
dis | the EndianIStream to be read |
static EntityRef asdm::EntityRef::fromBin | ( | EndianIStream & | eis | ) | [static] |
Read the binary representation of an EntityRef from a EndianIStream and use the read value to set an EntityRef.
eis | the EndianStream to be read |
EntityId asdm::EntityRef::getEntityId | ( | ) | const [inline] |
static EntityRef asdm::EntityRef::getEntityRef | ( | StringTokenizer & | t | ) | throw (InvalidArgumentException) [static] |
string asdm::EntityRef::getEntityTypeName | ( | ) | const [inline] |
Definition at line 166 of file EntityRef.h.
References entityTypeName.
string asdm::EntityRef::getInstanceVersion | ( | ) | const [inline] |
Definition at line 170 of file EntityRef.h.
References instanceVersion.
PartId asdm::EntityRef::getPartId | ( | ) | const [inline] |
Definition at line 162 of file EntityRef.h.
References partId.
string asdm::EntityRef::getXMLValue | ( | string | xml, | |
string | parm | |||
) | const [private] |
bool asdm::EntityRef::isNull | ( | ) | const [inline] |
Definition at line 144 of file EntityRef.h.
References entityId, and asdm::EntityId::isNull().
bool asdm::EntityRef::operator!= | ( | const EntityRef & | ) | const |
bool asdm::EntityRef::operator== | ( | const EntityRef & | ) | const |
void asdm::EntityRef::setEntityId | ( | EntityId | e | ) | [inline] |
Definition at line 174 of file EntityRef.h.
References entityId.
void asdm::EntityRef::setEntityTypeName | ( | string | s | ) | [inline] |
Definition at line 182 of file EntityRef.h.
References entityTypeName.
void asdm::EntityRef::setFromXML | ( | string | xml | ) |
Referenced by EntityRef().
void asdm::EntityRef::setInstanceVersion | ( | string | s | ) | [inline] |
Definition at line 186 of file EntityRef.h.
References instanceVersion.
void asdm::EntityRef::setPartId | ( | PartId | s | ) | [inline] |
Definition at line 178 of file EntityRef.h.
References partId.
static void asdm::EntityRef::toBin | ( | const vector< EntityRef > & | entityRef, | |
EndianOSStream & | eoss | |||
) | [static] |
Write the binary representation of a vector of EntityRef to an EndianOSStream.
void asdm::EntityRef::toBin | ( | EndianOSStream & | eoss | ) | const |
Write the binary representation of this to a EndianOSStream.
IDLEntityRef asdm::EntityRef::toIDLEntityRef | ( | ) | const |
string asdm::EntityRef::toString | ( | ) | const [inline] |
Definition at line 148 of file EntityRef.h.
References toXML().
string asdm::EntityRef::toXML | ( | ) | const throw (InvalidDataException) |
Referenced by asdm::operator<<(), and toString().
string asdm::EntityRef::validXML | ( | ) | const [private] |
ostream& operator<< | ( | ostream & | , | |
const EntityRef & | ||||
) | [friend] |
EntityId asdm::EntityRef::entityId [private] |
Definition at line 126 of file EntityRef.h.
Referenced by getEntityId(), isNull(), and setEntityId().
string asdm::EntityRef::entityTypeName [private] |
Definition at line 128 of file EntityRef.h.
Referenced by getEntityTypeName(), and setEntityTypeName().
string asdm::EntityRef::instanceVersion [private] |
Definition at line 129 of file EntityRef.h.
Referenced by getInstanceVersion(), and setInstanceVersion().
PartId asdm::EntityRef::partId [private] |
Definition at line 127 of file EntityRef.h.
Referenced by getPartId(), and setPartId().