Rogue Wave Views
Application Framework Package API Reference Guide
Product Documentation:

Rogue Wave Views
Documentation Home
List of all members | Public Member Functions
IlvDvNodeValue Class Reference

Application Framework node value. More...

#include <ilviews/appframe/nodeval.h>

Inheritance diagram for IlvDvNodeValue:
IlvValue IlXmlElementI IlXmlNodeI

Public Member Functions

 IlvDvNodeValue ()
 Constructs an IlvDvNodeValue object. More...
 
 IlvDvNodeValue (const IlvDvNodeValue &src)
 Constructs an IlvDvNodeValue object. More...
 
 IlvDvNodeValue (const char *name, IlInt n)
 Constructs an IlvDvNodeValue object. More...
 
 IlvDvNodeValue (const char *name, IlBoolean b)
 Constructs an IlvDvNodeValue object. More...
 
 IlvDvNodeValue (const char *name, IlFloat f)
 Constructs an IlvDvNodeValue object. More...
 
 IlvDvNodeValue (const char *name, IlDouble d)
 Constructs an IlvDvNodeValue object. More...
 
 IlvDvNodeValue (const char *name, const char *s)
 Constructs an IlvDvNodeValue object. More...
 
 IlvDvNodeValue (const char *name, IlAny p)
 Constructs an IlvDvNodeValue object. More...
 
void addChildValue (IlvDvNodeValue *child)
 Adds a child node value into the object. More...
 
virtual IlvDvNodeValuecopy () const
 Copies the object. More...
 
IlvDvNodeValuegetChild (const char *childName) const
 Retrieves a child node value with the given name. More...
 
IlvDvNodeValuegetChild (const IlSymbol *childName) const
 Retrieves a child node value with the given name. More...
 
IlvDvNodeValuegetChild (IlUInt index) const
 Returns a child node value at a given index. More...
 
IlBoolean getChildPoint (const char *name, IlvPoint &pt) const
 Gets the point value of a child node of the object. More...
 
IlBoolean getChildRect (const char *name, IlvRect &rect) const
 Gets the IlvRect value of a child node of the object. More...
 
IlUInt getChildsCount () const
 Returns the number of child nodes of the object. More...
 
const IlvValuegetChildValue (const char *childName) const
 Gets the value of a child node of the object. More...
 
const IlvValuegetChildValue (const IlSymbol *fieldName) const
 Gets the value of a child node of the object. More...
 
void insertChildValue (IlUInt index, IlvDvNodeValue *child)
 Inserts a child node value into the object. More...
 
void removeChild (const char *childName, IlBoolean deleteIt=IlTrue)
 Removes a child node value from the object. More...
 
void removeChild (IlUInt index, IlBoolean deleteIt=IlTrue)
 Removes a child node value from the object. More...
 
void removeChild (IlvDvNodeValue *child, IlBoolean deleteIt=IlTrue)
 Removes a child node value from the object. More...
 
void removeChilds ()
 Removes all the child node values of the object. More...
 
void setChildPoint (const char *name, const IlvPoint &pt)
 Sets the point value to a child node of the object. More...
 
void setChildRect (const char *name, const IlvRect &rect)
 Sets the IlvRect value to a child node of the object. More...
 
void setChildValue (const char *name, const IlvDvValue &value)
 Sets a value to a child node of the object. More...
 
void setChildValue (const IlSymbol *name, const IlvDvValue &value)
 Sets a value to a child node of the object. More...
 

Detailed Description

Application Framework node value.

Library: ilvappframe

The IlvDvNodeValue class is a node value used to store and access all the data read from the option files. The options data is provided by the IlvDvApplication class. Changes to the node values are internally marked so that the modified values are saved in the user option files when the application exits.

Constructor & Destructor Documentation

§ IlvDvNodeValue() [1/8]

IlvDvNodeValue::IlvDvNodeValue ( )

Constructs an IlvDvNodeValue object.

This constructor creates an empty instance of IlvDvNodeValue.

§ IlvDvNodeValue() [2/8]

IlvDvNodeValue::IlvDvNodeValue ( const IlvDvNodeValue src)

Constructs an IlvDvNodeValue object.

This constructor creates an instance of IlvDvNodeValue by copying all the attributes of the src object given as the parameter.

§ IlvDvNodeValue() [3/8]

IlvDvNodeValue::IlvDvNodeValue ( const char *  name,
IlInt  n 
)

Constructs an IlvDvNodeValue object.

This constructor creates an instance of IlvDvNodeValue with the accessor name name and with the integer n.

§ IlvDvNodeValue() [4/8]

IlvDvNodeValue::IlvDvNodeValue ( const char *  name,
IlBoolean  b 
)

Constructs an IlvDvNodeValue object.

This constructor creates an instance of IlvDvNodeValue with the accessor name name and with the Boolean b.

§ IlvDvNodeValue() [5/8]

IlvDvNodeValue::IlvDvNodeValue ( const char *  name,
IlFloat  f 
)

Constructs an IlvDvNodeValue object.

This constructor creates an instance of IlvDvNodeValue with the accessor name name and with the float f.

§ IlvDvNodeValue() [6/8]

IlvDvNodeValue::IlvDvNodeValue ( const char *  name,
IlDouble  d 
)

Constructs an IlvDvNodeValue object.

This constructor creates an instance of IlvDvNodeValue with the accessor name name and with the double f.

§ IlvDvNodeValue() [7/8]

IlvDvNodeValue::IlvDvNodeValue ( const char *  name,
const char *  s 
)

Constructs an IlvDvNodeValue object.

This constructor creates an instance of IlvDvNodeValue with the accessor name name and with the string s.

§ IlvDvNodeValue() [8/8]

IlvDvNodeValue::IlvDvNodeValue ( const char *  name,
IlAny  p 
)

Constructs an IlvDvNodeValue object.

This constructor creates an instance of IlvDvNodeValue with the accessor name name and with the pointer p.

Member Function Documentation

§ addChildValue()

void IlvDvNodeValue::addChildValue ( IlvDvNodeValue child)

Adds a child node value into the object.

Adds the node value child at the end of the child nodes list. The child object will be deleted by the object when it deletes itself.

§ copy()

virtual IlvDvNodeValue* IlvDvNodeValue::copy ( ) const
virtual

Copies the object.

Returns
A copy of the object.

§ getChild() [1/3]

IlvDvNodeValue* IlvDvNodeValue::getChild ( const char *  childName) const

Retrieves a child node value with the given name.

Retrieves a child node value whose name is equivalent to the name childName.

Returns
The node value with the given name.

§ getChild() [2/3]

IlvDvNodeValue* IlvDvNodeValue::getChild ( const IlSymbol childName) const

Retrieves a child node value with the given name.

Retrieves a child node value whose name is equivalent to the name childName.

Returns
The node value with the given name.

§ getChild() [3/3]

IlvDvNodeValue* IlvDvNodeValue::getChild ( IlUInt  index) const

Returns a child node value at a given index.

Returns
Returns the node value that is at the index index inside the child node list.

§ getChildPoint()

IlBoolean IlvDvNodeValue::getChildPoint ( const char *  name,
IlvPoint pt 
) const

Gets the point value of a child node of the object.

Gets the point value of the object child node whose name equals the name name.

Parameters
nameSpecifies the name of the object child node.
ptReceives the retrieved point value.
Returns
IlTrue if a child node with the given name was found.

§ getChildRect()

IlBoolean IlvDvNodeValue::getChildRect ( const char *  name,
IlvRect rect 
) const

Gets the IlvRect value of a child node of the object.

Gets the IlvRect value of the object child node whose name is equivalent to the name name.

Parameters
nameSpecifies the name of the object child node.
rectReceives the retrieved IlvRect value.
Returns
IlTrue if a child node with the given name was found.

§ getChildsCount()

IlUInt IlvDvNodeValue::getChildsCount ( ) const

Returns the number of child nodes of the object.

Returns
The number of child nodes of the object.

§ getChildValue() [1/2]

const IlvValue& IlvDvNodeValue::getChildValue ( const char *  childName) const

Gets the value of a child node of the object.

Gets the value of the object child node whose name equals the name name.

Returns
Returns the value of the child node of name childName.

§ getChildValue() [2/2]

const IlvValue& IlvDvNodeValue::getChildValue ( const IlSymbol fieldName) const

Gets the value of a child node of the object.

Gets the value of the object child node whose name equals the name name.

Returns
The value of the child node of name childName.

§ insertChildValue()

void IlvDvNodeValue::insertChildValue ( IlUInt  index,
IlvDvNodeValue child 
)

Inserts a child node value into the object.

Inserts the node value child into the child nodes list at the position given by the index parameter. The child object will be deleted by the object when it deletes itself.

§ removeChild() [1/3]

void IlvDvNodeValue::removeChild ( const char *  childName,
IlBoolean  deleteIt = IlTrue 
)

Removes a child node value from the object.

Removes the node value with the name childName from the list of the child node values.

Parameters
childNameThe name of the child node to remove.
deleteItIf IlTrue, the retrieved child node is deleted.

§ removeChild() [2/3]

void IlvDvNodeValue::removeChild ( IlUInt  index,
IlBoolean  deleteIt = IlTrue 
)

Removes a child node value from the object.

Removes the node value at the position index from the list of child node values.

Parameters
indexSpecifies the node position in the child node values.
deleteItIf IlTrue, the retrieved child node is deleted.

§ removeChild() [3/3]

void IlvDvNodeValue::removeChild ( IlvDvNodeValue child,
IlBoolean  deleteIt = IlTrue 
)

Removes a child node value from the object.

Removes the node value child from the list of child node values.

Parameters
childThe child node to remove.
deleteItIf IlTrue, the given child node is deleted.

§ removeChilds()

void IlvDvNodeValue::removeChilds ( )

Removes all the child node values of the object.

Removes all the node values from the list of child node values. All the child node values are deleted.

§ setChildPoint()

void IlvDvNodeValue::setChildPoint ( const char *  name,
const IlvPoint pt 
)

Sets the point value to a child node of the object.

Sets the point value given by the parameter pt to the child node whose name equals the name name.

§ setChildRect()

void IlvDvNodeValue::setChildRect ( const char *  name,
const IlvRect rect 
)

Sets the IlvRect value to a child node of the object.

Sets the IlvRect value given by the parameter rect to the child node whose name equals the name name.

§ setChildValue() [1/2]

void IlvDvNodeValue::setChildValue ( const char *  name,
const IlvDvValue value 
)

Sets a value to a child node of the object.

Sets the value value to the child node whose name equals the name name.

§ setChildValue() [2/2]

void IlvDvNodeValue::setChildValue ( const IlSymbol name,
const IlvDvValue value 
)

Sets a value to a child node of the object.

Sets the value value to the child node whose name equals the name name.


© Copyright 2017, 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.