Glossary:
com.pcbsys.nirvana.client.nEventPropertiesIterator Class Reference
This class enables you to iterate through the event properties keys and values. More...
#include <nEventPropertiesIterator.h>
Public Member Functions | |
| const std::string | getKey () |
| Return the key of the current key / value pair in the iterator. | |
| nObject * | getValue () |
| Return the value of the current key / value pair in the iterator. | |
| bool | hasNext () |
| Returns whether there is any more key/value pairs to process. | |
| void | increment () |
| Move to the next pair in the iterator. | |
Detailed Description
This class enables you to iterate through the event properties keys and values.For example:
nEventProperties *props = event->getEventProperties(); nEventPropertiesIterator *pIterator = pProp->getIterator (); while (pIterator->hasNext ()) { std.string key = pIterator->getKey (); nObject *pObject = pIterator->getValue(); int type = pObject->getType ();
if (type == nObject.EVENTPROPERTIES)
{
nEventProperties *pvalue = (nEventProperties*)pObject;
.....
}
else
{
.....
}
pIterator->increment();
}
