class NamedInt

A named integer value. More...

Full nameTelEngine::NamedInt
Definition#include <yatecbase.h>
InheritsTelEngine::String [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Static Methods

Protected Members


Detailed Description

This class holds a name integer value

inline  NamedInt (const char* name, int val = 0)

NamedInt

Constructor

Parameters:
nameName
valThe value

inline  NamedInt (const NamedInt& other)

NamedInt

Copy constructor

Parameters:
otherSource object

inline int  value ()

value

[const]

Retrieve the value

Returns: The integer value

inline void  setValue (int val)

setValue

Set the value

Parameters:
valThe new integer value

void  addToListUniqueName (ObjList& list, NamedInt* obj)

addToListUniqueName

[static]

Add an item to a list. Replace existing item with the same name

Parameters:
listThe list
objThe object

void  clearValue (ObjList& list, int val)

clearValue

[static]

Clear all items with a given value

Parameters:
listThe list
valValue to remove

inline int  lookup (const ObjList& list, const String& name, int defVal = 0)

lookup

[static]

Get an item's value from name

Parameters:
listThe list containing the item
nameItem name
defValValue to return if not found

Returns: Item value

inline const String&  lookupName (const ObjList& list, int val, const String& defVal = String::empty())

lookupName

[static]

Get an item's name from value

Parameters:
listThe list containing the item
valItem value
defValName to return if not found

Returns: Item name

int m_value

m_value

[protected]


Generated by: paulc on bussard on Thu Feb 26 17:49:11 2015, using kdoc 2.0a54.