casa
$Rev:20696$
|
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. | |
Tag (unsigned int i) | |
Create a Tag from an integer value. | |
Tag (unsigned int i, const TagType *t) | |
Create a Tag from an integer value and a TagType. | |
Tag (const Tag &t) | |
Create a Tag from a Tag (copy constructor). | |
Tag (IDLTag &t) | |
Tag(const string &id);. | |
string | toString () const |
Return the Tag as a String. | |
void | toBin (EndianOSStream &eoss) |
Write the binary representation of this to a EndianOSStream. | |
virtual | ~Tag () |
The Tag destructor. | |
TagType * | getTagType () |
Returns the type of this Tag. | |
unsigned int | getTagValue () const |
Returns the value of this Tag. | |
IDLTag | toIDLTag () const |
Returns a IDLTag object built from this Tag. | |
string | getTag () const |
Return this Tag value as a string. | |
Tag & | operator= (const Tag &) |
Assignment operator. | |
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. | |
Tag () | |
Create a default Tag that is null. | |
Tag (unsigned int i) | |
Create a Tag from an integer value. | |
Tag (unsigned int i, const TagType *t) | |
Create a Tag from an integer value and a TagType. | |
Tag (const Tag &t) | |
Create a Tag from a Tag (copy constructor). | |
Tag (IDLTag &t) | |
Tag(const string &id);. | |
string | toString () const |
Return the Tag as a String. | |
void | toBin (EndianOSStream &eoss) |
Write the binary representation of this to a EndianOSStream. | |
virtual | ~Tag () |
The Tag destructor. | |
TagType * | getTagType () |
Returns the type of this Tag. | |
unsigned int | getTagValue () const |
Returns the value of this Tag. | |
IDLTag | toIDLTag () const |
Returns a IDLTag object built from this Tag. | |
string | getTag () const |
Return this Tag value as a string. | |
Tag & | operator= (const Tag &) |
Assignment operator. | |
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. | |
Static Public Member Functions | |
static Tag | parseTag (string s) |
Create a Tag whose initial value is the specified string. | |
static void | toBin (const vector< Tag > &tag, EndianOSStream &eoss) |
Write the binary representation of a 1D array of Tag to an EndianOSStream. | |
static Tag | fromBin (EndianIStream &eis) |
Read the binary representation of a Tag from a EndianIStream. | |
static 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. | |
static Tag | parseTag (string s) |
Create a Tag whose initial value is the specified string. | |
static void | toBin (const vector< Tag > &tag, EndianOSStream &eoss) |
Write the binary representation of a 1D array of Tag to an EndianOSStream. | |
static Tag | fromBin (EndianIStream &eis) |
Read the binary representation of a Tag from a EndianIStream. | |
static 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. | |
Protected Attributes | |
string | tag |
TagType * | type |
Static Private Attributes | |
static boost::regex | tagSyntax |
Friends | |
std::ostream & | operator<< (ostream &os, const Tag &x) |
Overloading of << to output the value of a Tag on an ostream. | |
std::istream & | operator>> (istream &is, Tag &x) |
Overloading of >> to read a Tag from an istream. | |
std::ostream & | operator<< (ostream &os, const Tag &x) |
Overloading of << to output the value of a Tag on an ostream. | |
std::istream & | operator>> (istream &is, Tag &x) |
Overloading of >> to read a Tag from an istream. |
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 | ( | const Tag & | t | ) |
asdm::Tag::Tag | ( | IDLTag & | t | ) |
Tag(const string &id);.
Create a Tag from an IDLTag object.
t | The IDLTag object. |
TagFormatException |
virtual asdm::Tag::~Tag | ( | ) | [virtual] |
The Tag destructor.
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 | ( | const Tag & | t | ) |
asdm::Tag::Tag | ( | IDLTag & | t | ) |
Tag(const string &id);.
Create a Tag from an IDLTag object.
t | The IDLTag object. |
TagFormatException |
virtual asdm::Tag::~Tag | ( | ) | [virtual] |
The Tag destructor.
bool asdm::Tag::equals | ( | const Tag & | t | ) | const |
bool asdm::Tag::equals | ( | const Tag & | t | ) | const |
static vector<Tag> asdm::Tag::from1DBin | ( | EndianIStream & | eis | ) | [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 vector<Tag> asdm::Tag::from1DBin | ( | EndianIStream & | eis | ) | [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 Tag asdm::Tag::fromBin | ( | EndianIStream & | eis | ) | [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 |
static Tag asdm::Tag::fromBin | ( | EndianIStream & | eis | ) | [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 |
string asdm::Tag::getTag | ( | ) | const |
string asdm::Tag::getTag | ( | ) | const |
unsigned int asdm::Tag::getTagValue | ( | ) | const |
unsigned int asdm::Tag::getTagValue | ( | ) | const |
bool asdm::Tag::isNull | ( | ) | 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 |
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 |
@return true if and only if this->value==t.value and this-> type==t.type
bool asdm::Tag::operator> | ( | const Tag & | t | ) | const |
bool asdm::Tag::operator> | ( | const Tag & | t | ) | const |
static Tag asdm::Tag::parseTag | ( | string | s | ) | [static] |
Create a Tag whose initial value is the specified string.
TagFormatException |
static Tag asdm::Tag::parseTag | ( | string | s | ) | [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.
void asdm::Tag::toBin | ( | EndianOSStream & | eoss | ) |
Write the binary representation of this to a EndianOSStream.
static void asdm::Tag::toBin | ( | const vector< Tag > & | tag, |
EndianOSStream & | eoss | ||
) | [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 |
static void asdm::Tag::toBin | ( | const vector< Tag > & | tag, |
EndianOSStream & | eoss | ||
) | [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 |
IDLTag asdm::Tag::toIDLTag | ( | ) | const |
Returns a IDLTag object built from this Tag.
IDLTag asdm::Tag::toIDLTag | ( | ) | const |
Returns a IDLTag object built from this Tag.
string asdm::Tag::toString | ( | ) | const |
string asdm::Tag::toString | ( | ) | const |
std::ostream& operator<< | ( | ostream & | os, |
const Tag & | x | ||
) | [friend] |
std::ostream& operator<< | ( | ostream & | os, |
const Tag & | x | ||
) | [friend] |
std::istream& operator>> | ( | istream & | is, |
Tag & | x | ||
) | [friend] |
Overloading of >> to read a Tag from an istream.
std::istream& operator>> | ( | istream & | is, |
Tag & | x | ||
) | [friend] |
Overloading of >> to read a Tag from an istream.
string asdm::Tag::tag [protected] |
static boost::regex asdm::Tag::tagSyntax [static, private] |
TagType * asdm::Tag::type [protected] |