|
|
@ -98,6 +98,8 @@ public: |
|
|
|
void Write(int row,int col,uint32_t val); |
|
|
|
void Write(int row,int col,uint32_t val); |
|
|
|
void Write(int row,int col,float val); |
|
|
|
void Write(int row,int col,float val); |
|
|
|
void Write(int row,int col,std::string val); |
|
|
|
void Write(int row,int col,std::string val); |
|
|
|
|
|
|
|
int Rows(); |
|
|
|
|
|
|
|
int Cols(); |
|
|
|
//const SHNFile::Data Get(int row,int col)const;
|
|
|
|
//const SHNFile::Data Get(int row,int col)const;
|
|
|
|
template<typename T> |
|
|
|
template<typename T> |
|
|
|
const T Get(int row,int col)const; |
|
|
|
const T Get(int row,int col)const; |
|
|
@ -349,6 +351,12 @@ std::string SHNFile::Data::GetDisplayText(){ |
|
|
|
}break; |
|
|
|
}break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
int SHNFile::Rows(){ |
|
|
|
|
|
|
|
return contents.size(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
int SHNFile::Cols(){ |
|
|
|
|
|
|
|
return columnCount; |
|
|
|
|
|
|
|
} |
|
|
|
void SHNFile::Load(std::string file){ |
|
|
|
void SHNFile::Load(std::string file){ |
|
|
|
header=recordCount=defaultRecordLength=columnCount=0; |
|
|
|
header=recordCount=defaultRecordLength=columnCount=0; |
|
|
|
columns.clear(); |
|
|
|
columns.clear(); |
|
|
|