1 #ifndef READSPEK_H_INCLUDED
2 #define READSPEK_H_INCLUDED
15 std::string specFormat;
20 bool ReadSpek_C(
int nspec,
bool uns);
21 bool ReadSpek_S(
int nspec,
bool uns);
22 bool ReadSpek_I(
int nspec,
bool uns);
23 bool ReadSpek_L(
int nspec,
bool uns);
24 bool ReadSpek_F(
int nspec);
25 bool ReadSpek_D(
int nspec);
26 bool ReadSpek_A(
int nspec);
27 bool InitData(
int slen);
33 ReadSpek() : specName(
""), specFormat(
""), specLength(0), specFILE(NULL), specData(NULL) {}
35 bool Open(std::string sName, std::string sForm);
37 bool Read(
int slen,
int snum = 0);
38 float*
Data() {
return specData;}
42 bool SpecNameDecode(std::string sName, std::string& sForm,
int& slen);
43 bool SpecNameDecode(std::string sName, std::string& sForm, std::vector<int>& vlen);
44 bool SpecNameEncode(std::string& sName, std::string sForm,
int slen);
45 bool SpecNameEncode(std::string& sName, std::string sForm, std::vector<int> vlen);
47 #endif // READSPEK_H_INCLUDED
bool SpecNameDecode(std::string sName, std::string &sForm, int &slen)
bool Read(int slen, int snum=0)
bool Open(std::string sName, std::string sForm)
bool SpecNameEncode(std::string &sName, std::string sForm, int slen)