| # Gaudi Framework, version v22r2 |

Home |  | Generated: Tue May 10 2011

Public Types | Public Member Functions | Private Attributes

# ValueMap Class Reference

ValueMap is used in conjunction with Scouter and MLSender to carry the information declared by IMonitorSvc's declareInfo. More...

`#include <Scouter/ValueMap.h>`

List of all members.

## Public Types
enum | m_type { m_int, m_long, m_double, m_bool, m_string, m_null }
## Public Member Functions
| ValueMap (void *pointer, m_type pointerType)
| standard Constructor
| ValueMap ()
| default Constructor
virtual | ~ValueMap ()
| Destructor.
void | set_ptr (void *pointer)
| Sets pointer.
void | set_ptrType (m_type pointerType)
| Sets pointer type (enum)
void * | get_ptr ()
| Return pointer.
m_type | get_ptrType ()
| Return pointer type (enum)
## Private Attributes
void * | ptr
m_type | ptrType

## Detailed Description

ValueMap is used in conjunction with Scouter and MLSender to carry the information declared by IMonitorSvc's declareInfo.

It converts the variable to a void* pointer and stores its type information in an enum. This way, the variable can be converted to its original form when being written or published.

Author:
  Ben King

Date:
  2006-07-03

Definition at line 18 of file ValueMap.h.

## Member Enumeration Documentation

enum ValueMap::m_type

Enumerator:

  m_int |
  m_long |
  m_double |
  m_bool |
  m_string |
  m_null |

Definition at line 21 of file ValueMap.h.

                  {
        m_int,
        m_long,
        m_double,
        m_bool,
        m_string,
        m_null
      };

## Constructor & Destructor Documentation

ValueMap::ValueMap | ( | void * | pointer,
|  | m_type | pointerType
| ) |  | `[inline]`

standard Constructor

Definition at line 32 of file ValueMap.h.

      {
        ptr = pointer;
        ptrType = pointerType;
      }

ValueMap::ValueMap | ( | ) | `[inline]`

default Constructor

Definition at line 39 of file ValueMap.h.

      {
        ptr = NULL;
        ptrType = m_null;
      }

virtual ValueMap::~ValueMap | ( | ) | `[inline, virtual]`

Destructor.

Definition at line 46 of file ValueMap.h.

    {};

## Member Function Documentation

void* ValueMap::get_ptr | ( | ) | `[inline]`

Return pointer.

Definition at line 60 of file ValueMap.h.

    { return ptr; }

m_type ValueMap::get_ptrType | ( | ) | `[inline]`

Return pointer type (enum)

Definition at line 62 of file ValueMap.h.

    { return ptrType; }

void ValueMap::set_ptr | ( | void * | pointer ) | `[inline]`

Sets pointer.

Definition at line 52 of file ValueMap.h.

    { ptr = pointer;}

void ValueMap::set_ptrType | ( | m_type | pointerType ) | `[inline]`

Sets pointer type (enum)

Definition at line 54 of file ValueMap.h.

    { ptrType = pointerType; }

## Member Data Documentation

void* ValueMap::ptr`[private]`

Definition at line 67 of file ValueMap.h.

m_type ValueMap::ptrType`[private]`

Definition at line 68 of file ValueMap.h.

The documentation for this class was generated from the following file:

- /afs/.cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r2/GaudiMonitor/src/DataListenerSvc/ValueMap.h

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines