STRING_MANAGER::TWorksheet Struct Reference

#include <diff_tool.h>

List of all members.

Public Types

typedef std::vector< ucstringTRow
typedef std::vector< TRowTData

Public Member Functions

 TWorksheet ()
std::vector< TRow >::iterator begin ()
std::vector< TRow >::iterator end ()
std::vector< TRow >::const_iterator begin () const
std::vector< TRow >::const_iterator end () const
void push_back (const TRow &row)
std::vector< TRow >::iterator insert (std::vector< TRow >::iterator pos, const TRow &value)
std::vector< TRow >::iterator erase (std::vector< TRow >::iterator it)
TRowback ()
TRowoperator[] (uint index)
const TRowoperator[] (uint index) const
uint size () const
void insertColumn (uint colIndex)
void copyColumn (uint srcColIndex, uint dstColIndex)
void eraseColumn (uint colIndex)
void moveColumn (uint oldColIndex, uint newColIndex)
void setColCount (uint count)
bool findId (uint &colIndex)
bool findCol (ucstring colName, uint &colIndex)
void insertRow (uint rowIndex, const TRow &row)
void resize (uint numRows)
bool findRow (uint colIndex, const ucstring &colValue, uint &rowIndex)
void setData (uint rowIndex, uint colIndex, const ucstring &value)
const ucstringgetData (uint rowIndex, uint colIndex) const
void setData (uint rowIndex, const ucstring &colName, const ucstring &value)
const ucstringgetData (uint rowIndex, const ucstring &colName) const

Public Attributes

TData Data
uint ColCount

Detailed Description

Definition at line 90 of file diff_tool.h.


Member Typedef Documentation

Definition at line 93 of file diff_tool.h.

Definition at line 92 of file diff_tool.h.


Constructor & Destructor Documentation

STRING_MANAGER::TWorksheet::TWorksheet (  )  [inline]

Definition at line 97 of file diff_tool.h.


Member Function Documentation

TRow& STRING_MANAGER::TWorksheet::back (  )  [inline]

Definition at line 137 of file diff_tool.h.

References Data.

std::vector<TRow>::const_iterator STRING_MANAGER::TWorksheet::begin ( void   )  const [inline]

Definition at line 112 of file diff_tool.h.

References Data.

std::vector<TRow>::iterator STRING_MANAGER::TWorksheet::begin ( void   )  [inline]

Definition at line 102 of file diff_tool.h.

References Data.

Referenced by eraseColumn(), findCol(), findId(), getData(), NLMISC::CWordsDictionary::init(), insertColumn(), and setData().

void STRING_MANAGER::TWorksheet::copyColumn ( uint  srcColIndex,
uint  dstColIndex 
) [inline]

Definition at line 169 of file diff_tool.h.

References ColCount, Data, and nlassert.

Referenced by moveColumn().

std::vector<TRow>::const_iterator STRING_MANAGER::TWorksheet::end ( void   )  const [inline]

Definition at line 117 of file diff_tool.h.

References Data.

std::vector<TRow>::iterator STRING_MANAGER::TWorksheet::end ( void   )  [inline]

Definition at line 107 of file diff_tool.h.

References Data.

Referenced by findCol(), getData(), NLMISC::CWordsDictionary::init(), and setData().

std::vector<TRow>::iterator STRING_MANAGER::TWorksheet::erase ( std::vector< TRow >::iterator  it  )  [inline]

Definition at line 132 of file diff_tool.h.

References Data.

void STRING_MANAGER::TWorksheet::eraseColumn ( uint  colIndex  )  [inline]

Definition at line 180 of file diff_tool.h.

References begin(), ColCount, Data, and nlassertex.

Referenced by moveColumn().

bool STRING_MANAGER::TWorksheet::findCol ( ucstring  colName,
uint colIndex 
) [inline]

Definition at line 247 of file diff_tool.h.

References begin(), Data, and end().

Referenced by NLMISC::CWordsDictionary::init().

bool STRING_MANAGER::TWorksheet::findId ( uint colIndex  )  [inline]

Definition at line 226 of file diff_tool.h.

References begin(), and Data.

Referenced by NLMISC::CWordsDictionary::init().

bool STRING_MANAGER::TWorksheet::findRow ( uint  colIndex,
const ucstring colValue,
uint rowIndex 
) [inline]

Definition at line 277 of file diff_tool.h.

References ColCount, Data, and nlassertex.

const ucstring& STRING_MANAGER::TWorksheet::getData ( uint  rowIndex,
const ucstring colName 
) const [inline]

Definition at line 320 of file diff_tool.h.

References begin(), Data, end(), nlassertex, and ucstring::toString().

const ucstring& STRING_MANAGER::TWorksheet::getData ( uint  rowIndex,
uint  colIndex 
) const [inline]
std::vector<TRow>::iterator STRING_MANAGER::TWorksheet::insert ( std::vector< TRow >::iterator  pos,
const TRow value 
) [inline]

Definition at line 127 of file diff_tool.h.

References Data.

void STRING_MANAGER::TWorksheet::insertColumn ( uint  colIndex  )  [inline]

Definition at line 157 of file diff_tool.h.

References begin(), ColCount, Data, and nlassert.

Referenced by STRING_MANAGER::makeHashCode(), moveColumn(), and STRING_MANAGER::readExcelSheet().

void STRING_MANAGER::TWorksheet::insertRow ( uint  rowIndex,
const TRow row 
) [inline]

Definition at line 259 of file diff_tool.h.

References ColCount, Data, and nlassertex.

void STRING_MANAGER::TWorksheet::moveColumn ( uint  oldColIndex,
uint  newColIndex 
) [inline]

Definition at line 192 of file diff_tool.h.

References ColCount, copyColumn(), eraseColumn(), insertColumn(), and nlassert.

const TRow& STRING_MANAGER::TWorksheet::operator[] ( uint  index  )  const [inline]

Definition at line 147 of file diff_tool.h.

References Data.

TRow& STRING_MANAGER::TWorksheet::operator[] ( uint  index  )  [inline]

Definition at line 142 of file diff_tool.h.

References Data.

void STRING_MANAGER::TWorksheet::push_back ( const TRow row  )  [inline]

Definition at line 122 of file diff_tool.h.

References Data.

void STRING_MANAGER::TWorksheet::resize ( uint  numRows  )  [inline]

Definition at line 268 of file diff_tool.h.

References ColCount, and Data.

Referenced by STRING_MANAGER::readExcelSheet(), and setColCount().

void STRING_MANAGER::TWorksheet::setColCount ( uint  count  )  [inline]

Definition at line 216 of file diff_tool.h.

References ColCount, Data, and resize().

void STRING_MANAGER::TWorksheet::setData ( uint  rowIndex,
const ucstring colName,
const ucstring value 
) [inline]

Definition at line 311 of file diff_tool.h.

References begin(), Data, end(), nlassertex, and ucstring::toString().

void STRING_MANAGER::TWorksheet::setData ( uint  rowIndex,
uint  colIndex,
const ucstring value 
) [inline]

Definition at line 295 of file diff_tool.h.

References ColCount, Data, and nlassertex.

Referenced by STRING_MANAGER::readExcelSheet().

uint STRING_MANAGER::TWorksheet::size (  )  const [inline]

Definition at line 152 of file diff_tool.h.

References Data.

Referenced by STRING_MANAGER::readExcelSheet().


Member Data Documentation


The documentation for this struct was generated from the following file:

Generated on Thu Jan 7 08:30:23 2010 for NeL by  doxygen 1.6.1