#include <CondTools/DT/interface/DTDBDataHandle.h>
Public Member Functions | |
DTDBDataHandle () | |
Constructor. | |
virtual | ~DTDBDataHandle () |
Destructor. | |
Static Public Member Functions | |
static int | nearestInt (double d) |
Operations. | |
static bool | toBool (short s) |
static short | toShort (bool b) |
Definition at line 33 of file DTDBDataHandle.h.
DTDBDataHandle::DTDBDataHandle | ( | ) |
DTDBDataHandle::~DTDBDataHandle | ( | ) | [virtual] |
int DTDBDataHandle::nearestInt | ( | double | d | ) | [static] |
bool DTDBDataHandle::toBool | ( | short | s | ) | [static] |
Definition at line 55 of file DTDBDataHandle.cc.
00055 { 00056 00057 union u_short_bool { 00058 short s_num; 00059 bool b_num; 00060 }; 00061 union u_short_bool dataBuffer; 00062 dataBuffer.s_num = s; 00063 return dataBuffer.b_num; 00064 00065 }
short DTDBDataHandle::toShort | ( | bool | b | ) | [static] |
Definition at line 68 of file DTDBDataHandle.cc.
00068 { 00069 00070 union u_short_bool { 00071 short s_num; 00072 bool b_num; 00073 }; 00074 union u_short_bool dataBuffer; 00075 dataBuffer.s_num = 0; 00076 dataBuffer.b_num = b; 00077 return dataBuffer.s_num; 00078 00079 }