Add in Rows() and Cols() functions

master
sigonasr2 2 years ago
parent bb3606adc8
commit 0f65775b13
  1. 8
      SHNFileDecryptor/SHNFileDecryptor.h

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

Loading…
Cancel
Save