Gaudi Framework, version v22r1

Home   Generated: Mon Feb 28 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

Enumerator:
m_int 
m_long 
m_double 
m_bool 
m_string 
m_null 

Definition at line 21 of file ValueMap.h.


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.

Definition at line 68 of file ValueMap.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Mon Feb 28 2011 18:28:29 for Gaudi Framework, version v22r1 by Doxygen version 1.7.2 written by Dimitri van Heesch, © 1997-2004