00001 00002 00003 00004 00005 00006 00007 00008 #ifndef HELPER_H 00009 #define HELPER_H 00010 #include <cstdio> 00011 #include <cstdlib> 00012 #include <cstring> 00013 #include <iostream> 00014 #include <string> 00015 00016 00017 #include <cmath> 00018 #include <cadef.h> 00019 #include <cafeEnum.h> 00020 #include <defines.h> 00021 00022 class Helper 00023 { 00024 public: 00025 Helper(){}; 00026 00027 void removeLeadingAndTrailingSpacesDbrString(const char * _pv, char pvStripped[MAX_STRING_SIZE]); 00028 void removeLeadingAndTrailingSpacesPseudo(const char * _pv, char pvStripped[PVGROUP_PSEUDO_SIZE]); 00029 void removeLeadingAndTrailingSpaces(const char * _pv, char pvStripped[PVNAME_SIZE]); 00030 unsigned int convertToUniqueNumber(const char * pv, ca_client_context * ccc, unsigned int ghs); 00031 unsigned int convertToUniqueNumber(const char * pv, ca_client_context * ccc); 00032 CAFENUM::DBR_TYPE convertToCAFEDbrTypeClass(const chtype _chtype) const; 00033 00034 std::string concatToString(dbr_char_t * inChar, unsigned int nChar); 00035 }; 00036 00037 #endif // HELPER_H