rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Data Access Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IliAttributePath Class Reference

Schema class. More...

#include <ilviews/dataccess/schema.h>

List of all members.

Public Member Functions

 IliAttributePath (const IliAttributePath &)
 This is the copy constructor of the IliAttributePath class.
 IliAttributePath ()
 This constructor initializes an empty attribute path.
void appendAttribute (const char *name)
 Appends a new attribute name at the end of the path.
void emit (IliString &dest) const
 Appends the sequence of attribute names to a string.
const char * getAttributeAt (IlInt idx) const
 Returns an attribute name.
IlInt getAttributeCount () const
 Returns the number of attribute names in this attribute path.
int operator!= (const IliAttributePath &) const
 Compares two paths.
IliAttributePathoperator= (const IliAttributePath &path)
 Assigns this attribute path with another attribute path.
int operator== (const IliAttributePath &) const
 Compares two paths.
void read (IL_STDPREF istream &input)
 Reads the attribute path from an input stream.
void removeAttribute (IlInt idx)
 Removes the attribute name.
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.

Static Public Member Functions

static IliAttributePath Parse (const char *seq)
 This static member function expects to find a sequence of names, separated by periods (.).

Detailed Description

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.

See also:
IliSchema

Member Function Documentation

void IliAttributePath::appendAttribute ( const char *  name  ) 

Appends a new attribute name at the end of the path.

Parameters:
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.

Parameters:
dest The string. The attribute names are separated by a period (.) character.
const char* IliAttributePath::getAttributeAt ( IlInt  idx  )  const

Returns an attribute name.

Parameters:
idx The attribute position.
Returns:
The attribute name positioned at idx or NULL if idx is out of range.
IlInt IliAttributePath::getAttributeCount (  )  const

Returns the number of attribute names in this attribute path.

Returns:
The count.
int IliAttributePath::operator!= ( const IliAttributePath  )  const

Compares two paths.

Returns:
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.

Parameters:
path The new value.
int IliAttributePath::operator== ( const IliAttributePath  )  const

Compares two paths.

Returns:
1 if this attribute path has the same sequence of attributes as the path parameter and 0 otherwise.
static IliAttributePath IliAttributePath::Parse ( const char *  seq  )  [static]

This static member function expects to find a sequence of names, separated by periods (.).

Parameters:
seq The sequence.
Returns:
An attribute path containing this sequence of names.
void IliAttributePath::read ( IL_STDPREF istream &  input  ) 

Reads the attribute path from an input stream.

Parameters:
input The input stream.
void IliAttributePath::removeAttribute ( IlInt  idx  ) 

Removes the attribute name.

Parameters:
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.

Parameters:
output The output stream.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends

© 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.