diff --git a/SHNFileDecryptor/SHNFileDecryptor.h b/SHNFileDecryptor/SHNFileDecryptor.h index 1696743..396cf21 100644 --- a/SHNFileDecryptor/SHNFileDecryptor.h +++ b/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 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();