From 0f65775b13e0f30135695a0691efd814ad8294db Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Sat, 12 Aug 2023 13:50:35 -0500 Subject: [PATCH] Add in Rows() and Cols() functions --- SHNFileDecryptor/SHNFileDecryptor.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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();