| # Gaudi Framework, version v21r8 |

Home |  | Generated: 17 Mar 2010

# ValueMap.h

Go to the documentation of this file.

    00001 #ifndef DATALISTENERSVC_VALUEMAP_H
    00002 #define DATALISTENERSVC_VALUEMAP_H 1
    00003
    00004 // Include files
    00005 // from STL
    00006 #include <string>
    00007
    00018 class ValueMap  {
    00019 public:
    00020
    00021   enum m_type {
    00022     m_int,
    00023     m_long,
    00024     m_double,
    00025     m_bool,
    00026     m_string,
    00027     m_null
    00028   };
    00029
    00030
    00032   ValueMap (void *pointer, m_type pointerType)
    00033   {
    00034     ptr = pointer;
    00035     ptrType = pointerType;
    00036   }
    00037
    00039   ValueMap()
    00040   {
    00041     ptr = NULL;
    00042     ptrType = m_null;
    00043   }
    00044
    00046   virtual ~ValueMap() {};
    00047
    00048
    00049   // SET METHODS
    00050
    00052   void set_ptr(void *pointer) { ptr = pointer;}
    00054   void set_ptrType (m_type pointerType) { ptrType = pointerType; }
    00055
    00056
    00057   // ACCESS METHODS
    00058
    00060   void* get_ptr() { return ptr; }
    00062   m_type get_ptrType() { return ptrType; }
    00063
    00064
    00065 private:
    00066
    00067   void* ptr;
    00068   m_type ptrType;
    00069
    00070
    00071 };
    00072 #endif // DATALISTENERSVC_VALUEMAP_H