Rogue Wave Views 5.6 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Schema class. More...
#include <ilviews/dataccess/schema.h>
Public Member Functions | |
IliAttributePath () | |
This constructor initializes an empty attribute path. | |
IliAttributePath (const IliAttributePath &) | |
This is the copy constructor of the IliAttributePath class. | |
void | appendAttribute (const char *name) |
Appends a new attribute name at the end of the path. More... | |
void | emit (IliString &dest) const |
Appends the sequence of attribute names to a string. More... | |
const char * | getAttributeAt (IlInt idx) const |
Returns an attribute name. More... | |
IlInt | getAttributeCount () const |
Returns the number of attribute names in this attribute path. More... | |
int | operator!= (const IliAttributePath &) const |
Compares two paths. More... | |
IliAttributePath & | operator= (const IliAttributePath &path) |
Assigns this attribute path with another attribute path. More... | |
int | operator== (const IliAttributePath &) const |
Compares two paths. More... | |
void | read (IL_STDPREF istream &input) |
Reads the attribute path from an input stream. More... | |
void | removeAttribute (IlInt idx) |
Removes the attribute name. More... | |
void | write (IL_STDPREF ostream &output) const |
Writes the definition of an attribute path to an output stream in a form suitable to be read back by the read member function. More... | |
Static Public Member Functions | |
static IliAttributePath | Parse (const char *seq) |
This static member function expects to find a sequence of names, separated by periods (.). More... | |
Schema class.
Library: dataccess
The IliAttributePath
class defines objects that hold a sequence of attribute names. It is used to specify an access path from a given schema to a nested schema.
void IliAttributePath::appendAttribute | ( | const char * | name | ) |
Appends a new attribute name at the end of the path.
name | The name. It is copied by this member function. |
void IliAttributePath::emit | ( | IliString & | dest | ) | const |
Appends the sequence of attribute names to a string.
dest | The string. The attribute names are separated by a period (.) character. |
const char* IliAttributePath::getAttributeAt | ( | IlInt | idx | ) | const |
Returns an attribute name.
idx | The attribute position. |
idx
or NULL
if idx
is out of range. IlInt IliAttributePath::getAttributeCount | ( | ) | const |
Returns the number of attribute names in this attribute path.
int IliAttributePath::operator!= | ( | const IliAttributePath & | ) | const |
Compares two paths.
0
if this attribute path has the same sequence of attributes as the path parameter and 1
otherwise. IliAttributePath& IliAttributePath::operator= | ( | const IliAttributePath & | path | ) |
Assigns this attribute path with another attribute path.
path | The new value. |
int IliAttributePath::operator== | ( | const IliAttributePath & | ) | const |
Compares two paths.
1
if this attribute path has the same sequence of attributes as the path parameter and 0
otherwise.
|
static |
This static member function expects to find a sequence of names, separated by periods (.).
seq | The sequence. |
void IliAttributePath::read | ( | IL_STDPREF istream & | input | ) |
Reads the attribute path from an input stream.
input | The input stream. |
void IliAttributePath::removeAttribute | ( | IlInt | idx | ) |
Removes the attribute name.
idx | The attribute name position. |
void IliAttributePath::write | ( | IL_STDPREF ostream & | output | ) | const |
Writes the definition of an attribute path to an output stream in a form suitable to be read back by the read
member function.
output | The output stream. |
© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.