casa
5.7.0-16
|
The Tag class is an implementation of a unique index identifying a row of an ASDM table. More...
#include <Tag.h>
Public Member Functions | |
Tag () | |
Create a default Tag that is null. More... | |
Tag (unsigned int i) | |
Create a Tag from an integer value. More... | |
Tag (unsigned int i, const TagType *t) | |
Create a Tag from an integer value and a TagType. More... | |
Tag (const Tag &t) | |
Create a Tag from a Tag (copy constructor). More... | |
Tag (asdmIDLTypes::IDLTag &t) | |
Tag(const string &id);. More... | |
std::string | toString () const |
Return the Tag as a String. More... | |
void | toBin (EndianOSStream &eoss) |
Write the binary representation of this to a EndianOSStream. More... | |
virtual | ~Tag () |
The Tag destructor. More... | |
TagType * | getTagType () |
Returns the type of this Tag. More... | |
unsigned int | getTagValue () const |
Returns the value of this Tag. More... | |
asdmIDLTypes::IDLTag | toIDLTag () const |
Returns a IDLTag object built from this Tag. More... | |
std::string | getTag () const |
Return this Tag value as a string. More... | |
Tag & | operator= (const Tag &) |
Assignment operator. More... | |
bool | equals (const Tag &t) const |
bool | operator== (const Tag &t) const |
bool | operator!= (const Tag &t) const |
bool | operator< (const Tag &t) const |
bool | operator> (const Tag &t) const |
bool | isNull () const |
Return true if and only if this Tag is null, i.e. More... | |
Static Public Member Functions | |
static Tag | parseTag (std::string s) |
Create a Tag whose initial value is the specified string. More... | |
static void | toBin (const std::vector< Tag > &tag, EndianOSStream &eoss) |
Write the binary representation of a 1D array of Tag to an EndianOSStream. More... | |
static Tag | fromBin (EndianIStream &eis) |
Read the binary representation of a Tag from a EndianIStream. More... | |
static std::vector< Tag > | from1DBin (EndianIStream &eis) |
Read the binary representation of a of a vector of Tag from an EndianIStream and use the read value to set a vector of Tag. More... | |
Protected Attributes | |
std::string | tag |
TagType * | type |
Static Private Attributes | |
static boost::regex | tagSyntax |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Tag &x) |
Overloading of << to output the value of a Tag on an ostream. More... | |
std::istream & | operator>> (std::istream &is, Tag &x) |
Overloading of >> to read a Tag from an istream. More... | |
The Tag class is an implementation of a unique index identifying a row of an ASDM table.
Basically a Tag is defined by :
asdm::Tag::Tag | ( | ) |
Create a default Tag that is null.
asdm::Tag::Tag | ( | unsigned int | i | ) |
Create a Tag from an integer value.
i | the integer defining the Tag value. |
asdm::Tag::Tag | ( | unsigned int | i, |
const TagType * | t | ||
) |
asdm::Tag::Tag | ( | asdmIDLTypes::IDLTag & | t | ) |
Tag(const string &id);.
Create a Tag from an IDLTag object.
t | The IDLTag object. |
TagFormatException |
|
virtual |
The Tag destructor.
bool asdm::Tag::equals | ( | const Tag & | t | ) | const |
|
static |
Read the binary representation of a of a vector of Tag from an EndianIStream and use the read value to set a vector of Tag.
eiis | the EndianIStream to be read |
TagFormatException |
|
static |
Read the binary representation of a Tag from a EndianIStream.
and use the read value to set a Tag.
eis | the the EndianIStream to be read |
TagFormatException |
std::string asdm::Tag::getTag | ( | ) | const |
TagType* asdm::Tag::getTagType | ( | ) |
unsigned int asdm::Tag::getTagValue | ( | ) | const |
bool asdm::Tag::isNull | ( | ) | const |
bool asdm::Tag::operator!= | ( | const Tag & | t | ) | const |
bool asdm::Tag::operator< | ( | const Tag & | t | ) | const |
bool asdm::Tag::operator== | ( | const Tag & | t | ) | const |
@return true if and only if this->value==t.value and this-> type==t.type
bool asdm::Tag::operator> | ( | const Tag & | t | ) | const |
|
static |
Create a Tag whose initial value is the specified string.
TagFormatException |
void asdm::Tag::toBin | ( | EndianOSStream & | eoss | ) |
Write the binary representation of this to a EndianOSStream.
|
static |
Write the binary representation of a 1D array of Tag to an EndianOSStream.
tag | the vector of Tag to be written |
eoss | the EndianOSStream to be written to |
asdmIDLTypes::IDLTag asdm::Tag::toIDLTag | ( | ) | const |
Returns a IDLTag object built from this Tag.
std::string asdm::Tag::toString | ( | ) | const |
|
friend |
|
friend |
Overloading of >> to read a Tag from an istream.