casa
5.7.0-16
|
The Entity class is an identification of a persistant entity in the ALMA archive. More...
#include <Entity.h>
Public Member Functions | |
Entity () | |
Entity (const std::string &s) | |
Entity (asdmIDLTypes::IDLEntity &) | |
Entity (std::string entityId, std::string entityIdEncrypted, std::string entityTypeName, std::string entityVersion, std::string instanceVersion) | |
virtual | ~Entity () |
bool | operator== (const Entity &) const |
bool | equals (const Entity &) const |
bool | operator!= (const Entity &) const |
bool | isNull () const |
std::string | toString () const |
std::string | toXML () const |
asdmIDLTypes::IDLEntity | toIDLEntity () const |
void | setFromXML (std::string xml) |
void | toBin (EndianOSStream &eoss) const |
Write the binary representation of this to a EndianOSStream. More... | |
EntityId | getEntityId () const |
std::string | getEntityIdEncrypted () const |
std::string | getEntityTypeName () const |
std::string | getEntityVersion () const |
std::string | getInstanceVersion () const |
void | setEntityId (EntityId e) |
void | setEntityIdEncrypted (std::string s) |
void | setEntityTypeName (std::string s) |
void | setEntityVersion (std::string s) |
void | setInstanceVersion (std::string s) |
Static Public Member Functions | |
static Entity | getEntity (StringTokenizer &t) |
static Entity | fromBin (EndianIStream &eis) |
Read the binary representation of an Enity from a EndianIStream and use the read value to set an Entity. More... | |
Private Member Functions | |
std::string | getXMLValue (std::string xml, std::string parm) const |
std::string | validXML () const |
Private Attributes | |
EntityId | entityId |
std::string | entityIdEncrypted |
std::string | entityTypeName |
std::string | entityVersion |
std::string | instanceVersion |
Friends | |
std::ostream & | operator<< (std::ostream &, const Entity &) |
std::istream & | operator>> (std::istream &, Entity &) |
The Entity class is an identification of a persistant entity in the ALMA archive.
It easily maps onto an EntityT object in ACS system entities.
InvalidArgumentException |
asdm::Entity::Entity | ( | ) |
asdm::Entity::Entity | ( | const std::string & | s | ) |
asdm::Entity::Entity | ( | asdmIDLTypes::IDLEntity & | ) |
asdm::Entity::Entity | ( | std::string | entityId, |
std::string | entityIdEncrypted, | ||
std::string | entityTypeName, | ||
std::string | entityVersion, | ||
std::string | instanceVersion | ||
) |
|
virtual |
bool asdm::Entity::equals | ( | const Entity & | ) | const |
|
static |
Read the binary representation of an Enity from a EndianIStream and use the read value to set an Entity.
eis | the EndianStream to be read |
Referenced by asdm::TableStreamReader< T, R >::open().
|
static |
EntityId asdm::Entity::getEntityId | ( | ) | const |
std::string asdm::Entity::getEntityIdEncrypted | ( | ) | const |
std::string asdm::Entity::getEntityTypeName | ( | ) | const |
std::string asdm::Entity::getEntityVersion | ( | ) | const |
std::string asdm::Entity::getInstanceVersion | ( | ) | const |
|
private |
bool asdm::Entity::isNull | ( | ) | const |
bool asdm::Entity::operator!= | ( | const Entity & | ) | const |
bool asdm::Entity::operator== | ( | const Entity & | ) | const |
void asdm::Entity::setEntityId | ( | EntityId | e | ) |
void asdm::Entity::setEntityIdEncrypted | ( | std::string | s | ) |
void asdm::Entity::setEntityTypeName | ( | std::string | s | ) |
void asdm::Entity::setEntityVersion | ( | std::string | s | ) |
void asdm::Entity::setFromXML | ( | std::string | xml | ) |
void asdm::Entity::setInstanceVersion | ( | std::string | s | ) |
void asdm::Entity::toBin | ( | EndianOSStream & | eoss | ) | const |
Write the binary representation of this to a EndianOSStream.
asdmIDLTypes::IDLEntity asdm::Entity::toIDLEntity | ( | ) | const |
std::string asdm::Entity::toString | ( | ) | const |
std::string asdm::Entity::toXML | ( | ) | const |
|
private |
|
friend |
|
friend |