00001 #ifndef TOOLBOXHH 00002 #define TOOLBOXHH 00003 00004 #include <string> 00005 00006 // Define verbose level 00007 #define NO_V 0 00008 #define LAW_V 1 00009 #define HIGHT_V 2 00010 00011 class Toolbox 00012 { 00013 00014 public: 00015 ~Toolbox(); 00016 00017 static void readSteerFile(std::string fileNamne, bool verbose ); 00018 static unsigned short bigTolittle ( short value ); 00019 static void addIntToString(std::string& chaine,int value); 00020 00021 00022 static const unsigned int MASK_LSB = 0x00ff; // 0000 0000 1111 1111 00023 static const unsigned int MASK_MSB = 0xff00; // 1111 1111 0000 0000 00024 static const unsigned long MASK_CHANNEL_DATA = 0x00000fff; // 0000 0000 0000 0000 0000 1111 1111 1111 00025 static const unsigned long MASK_CHANNEL_NUMBER = 0x007ff000; // 0000 0000 0111 1111 1111 0000 0000 0000 00026 static const unsigned int MASK_12BIT = 0x0fff; // 0000 1111 1111 1111 00027 00028 private: 00029 Toolbox(); // class cannot be instantiate only static method should be used 00030 }; 00031 00032 #endif