#include <diff_tool.h>
Public Types | |
typedef std::vector< TRow > | TData |
typedef std::vector< ucstring > | TRow |
Public Member Functions | |
TRow & | back () |
std::vector< TRow >::const_iterator | begin () const |
std::vector< TRow >::iterator | begin () |
std::vector< TRow >::const_iterator | end () const |
std::vector< TRow >::iterator | end () |
std::vector< TRow >::iterator | erase (std::vector< TRow >::iterator it) |
void | eraseColumn (uint colIndex) |
bool | findCol (ucstring colName, uint &colIndex) |
bool | findId (uint &colIndex) |
bool | findRow (uint colIndex, const ucstring &colValue, uint &rowIndex) |
const ucstring & | getData (uint rowIndex, const ucstring &colName) const |
const ucstring & | getData (uint rowIndex, uint colIndex) const |
std::vector< TRow >::iterator | insert (std::vector< TRow >::iterator pos, const TRow &value) |
void | insertColumn (uint colIndex) |
void | insertRow (uint rowIndex, const TRow &row) |
const TRow & | operator[] (uint index) const |
TRow & | operator[] (uint index) |
void | push_back (const TRow &row) |
void | resize (uint numRows) |
void | setColCount (uint count) |
void | setData (uint rowIndex, const ucstring &colName, const ucstring &value) |
void | setData (uint rowIndex, uint colIndex, const ucstring &value) |
uint | size () const |
TWorksheet () | |
Data Fields | |
uint | ColCount |
TData | Data |
|
Definition at line 95 of file diff_tool.h. |
|
Definition at line 94 of file diff_tool.h. Referenced by back(), NLMISC::CWordsDictionary::init(), insert(), insertRow(), STRING_MANAGER::TTestWorksheetItem::operator()(), operator[](), and push_back(). |
|
Definition at line 99 of file diff_tool.h. References ColCount.
00100 : ColCount(0) 00101 { 00102 } |
|
Definition at line 139 of file diff_tool.h. References TRow.
00140 { 00141 return Data.back(); 00142 } |
|
Definition at line 114 of file diff_tool.h.
00115 { 00116 return Data.begin(); 00117 } |
|
Definition at line 104 of file diff_tool.h. Referenced by eraseColumn(), findCol(), getData(), NLMISC::CWordsDictionary::init(), insertColumn(), and setData().
00105 { 00106 return Data.begin(); 00107 } |
|
Definition at line 119 of file diff_tool.h.
00120 { 00121 return Data.end(); 00122 } |
|
Definition at line 109 of file diff_tool.h. Referenced by findCol(), getData(), NLMISC::CWordsDictionary::init(), and setData().
00110 { 00111 return Data.end(); 00112 } |
|
Definition at line 134 of file diff_tool.h.
00135 { 00136 return Data.erase(it); 00137 } |
|
Definition at line 171 of file diff_tool.h. References begin(), ColCount, nlassert, and uint.
|
|
Definition at line 209 of file diff_tool.h. References begin(), end(), and uint. Referenced by NLMISC::CWordsDictionary::init().
|
|
Definition at line 193 of file diff_tool.h. References uint. Referenced by NLMISC::CWordsDictionary::init().
00194 { 00195 if (Data.empty()) 00196 return false; 00197 00198 for (TWorksheet::TRow::iterator it=Data[0].begin(); it!=Data[0].end(); ++it) 00199 { 00200 if ((*it).toString().find( "ID" ) != std::string::npos) 00201 { 00202 colIndex = it - Data[0].begin(); 00203 return true; 00204 } 00205 } 00206 return false; 00207 } |
|
Definition at line 239 of file diff_tool.h. References ColCount, nlassert, and uint.
00240 { 00241 nlassert(colIndex < ColCount); 00242 00243 TData::iterator first(Data.begin()), last(Data.end()); 00244 00245 for (; first != last; ++first) 00246 { 00247 if (first->operator[](colIndex) == colValue) 00248 { 00249 rowIndex = first - Data.begin(); 00250 return true; 00251 } 00252 00253 } 00254 return false; 00255 } |
|
Definition at line 281 of file diff_tool.h. References begin(), end(), nlassert, and uint.
|
|
Definition at line 265 of file diff_tool.h. References ColCount, nlassert, and uint. Referenced by STRING_MANAGER::TGetWorksheetHashValue::operator()(), STRING_MANAGER::TGetWorksheetIdentifier::operator()(), and STRING_MANAGER::readExcelSheet().
|
|
Definition at line 129 of file diff_tool.h.
00130 { 00131 return Data.insert(pos, value); 00132 } |
|
Definition at line 159 of file diff_tool.h. References begin(), ColCount, nlassert, and uint. Referenced by STRING_MANAGER::makeHashCode(), and STRING_MANAGER::readExcelSheet().
|
|
Definition at line 221 of file diff_tool.h. References ColCount, nlassert, TRow, and uint.
|
|
Definition at line 149 of file diff_tool.h. References index, TRow, and uint.
|
|
Definition at line 144 of file diff_tool.h. References index, TRow, and uint.
|
|
Definition at line 124 of file diff_tool.h. References TRow.
00125 { 00126 Data.push_back(row); 00127 } |
|
Definition at line 230 of file diff_tool.h. References ColCount, and uint. Referenced by STRING_MANAGER::readExcelSheet().
|
|
Definition at line 183 of file diff_tool.h. References ColCount, count, and uint.
|
|
Definition at line 273 of file diff_tool.h. References begin(), end(), nlassert, uint, and value.
|
|
Definition at line 257 of file diff_tool.h. References ColCount, nlassert, uint, and value. Referenced by STRING_MANAGER::readExcelSheet().
|
|
Definition at line 154 of file diff_tool.h. References uint. Referenced by STRING_MANAGER::readExcelSheet().
00155 { 00156 return Data.size(); 00157 } |
|
Definition at line 97 of file diff_tool.h. Referenced by eraseColumn(), findRow(), getData(), insertColumn(), insertRow(), STRING_MANAGER::makeHashCode(), STRING_MANAGER::readExcelSheet(), resize(), setColCount(), setData(), and TWorksheet(). |
|
Definition at line 96 of file diff_tool.h. Referenced by STRING_MANAGER::makeHashCode(), and STRING_MANAGER::prepareExcelSheet(). |