NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
#include <BasicExcel.hpp>
Public Member Functions | |
Block () | |
bool | Create (const wchar_t *filename) |
bool | Open (const wchar_t *filename, std::ios_base::openmode mode=std::ios_base::in|std::ios_base::out) |
bool | Close () |
bool | IsOpen () |
bool | Read (size_t index, char *block) |
bool | Write (size_t index, const char *block) |
bool | Swap (size_t index1, size_t index2) |
bool | Move (size_t from, size_t to) |
bool | Insert (size_t index, const char *block) |
bool | Erase (size_t index) |
bool | Erase (std::vector< size_t > &indices) |
size_t | GetBlockSize () const |
void | SetBlockSize (size_t size) |
Protected Attributes | |
std::vector< char > | filename_ |
std::ios_base::openmode | mode_ |
std::fstream | file_ |
size_t | blockSize_ |
size_t | indexEnd_ |
size_t | fileSize_ |
Definition at line 69 of file BasicExcel.hpp.
YCompoundFiles::Block::Block | ( | ) |
Definition at line 9 of file BasicExcel.cpp.
bool YCompoundFiles::Block::Close | ( | ) |
Definition at line 69 of file BasicExcel.cpp.
References blockSize_, file_, filename_, fileSize_, and indexEnd_.
Referenced by YCompoundFiles::CompoundFile::Close(), and Open().
bool YCompoundFiles::Block::Create | ( | const wchar_t * | filename | ) |
Definition at line 12 of file BasicExcel.cpp.
References file_, name, Open(), date::detail::trunc(), and wcstombs().
Referenced by YCompoundFiles::CompoundFile::Create().
bool YCompoundFiles::Block::Erase | ( | size_t | index | ) |
Definition at line 198 of file BasicExcel.cpp.
References blockSize_, file_, filename_, fileSize_, indexEnd_, mode_, and date::detail::trunc().
Referenced by YCompoundFiles::CompoundFile::FreeBlocks().
bool YCompoundFiles::Block::Erase | ( | std::vector< size_t > & | indices | ) |
Definition at line 231 of file BasicExcel.cpp.
References blockSize_, file_, filename_, fileSize_, indexEnd_, mode_, and date::detail::trunc().
|
inline |
Definition at line 91 of file BasicExcel.hpp.
References blockSize_.
bool YCompoundFiles::Block::Insert | ( | size_t | index, |
const char * | block | ||
) |
Definition at line 176 of file BasicExcel.cpp.
References indexEnd_, mode_, Move(), and Write().
Referenced by YCompoundFiles::CompoundFile::ExpandBATArray(), and YCompoundFiles::CompoundFile::WriteData().
bool YCompoundFiles::Block::IsOpen | ( | ) |
Definition at line 82 of file BasicExcel.cpp.
References file_.
Referenced by YCompoundFiles::CompoundFile::IsOpen().
bool YCompoundFiles::Block::Move | ( | size_t | from, |
size_t | to | ||
) |
bool YCompoundFiles::Block::Open | ( | const wchar_t * | filename, |
std::ios_base::openmode | mode = std::ios_base::in | std::ios_base::out |
||
) |
Definition at line 33 of file BasicExcel.cpp.
References blockSize_, Close(), file_, filename_, fileSize_, indexEnd_, mode_, and wcstombs().
Referenced by Create().
bool YCompoundFiles::Block::Read | ( | size_t | index, |
char * | block | ||
) |
Definition at line 89 of file BasicExcel.cpp.
References blockSize_, file_, indexEnd_, and mode_.
Referenced by YCompoundFiles::CompoundFile::LoadBAT(), YCompoundFiles::CompoundFile::LoadHeader(), YCompoundFiles::CompoundFile::ReadData(), and Swap().
|
inline |
Definition at line 92 of file BasicExcel.hpp.
References blockSize_, fileSize_, and indexEnd_.
Referenced by YCompoundFiles::CompoundFile::LoadHeader().
bool YCompoundFiles::Block::Swap | ( | size_t | index1, |
size_t | index2 | ||
) |
Definition at line 123 of file BasicExcel.cpp.
References blockSize_, indexEnd_, mode_, Read(), and Write().
Referenced by Move().
bool YCompoundFiles::Block::Write | ( | size_t | index, |
const char * | block | ||
) |
Definition at line 104 of file BasicExcel.cpp.
References blockSize_, file_, filename_, fileSize_, indexEnd_, and mode_.
Referenced by Insert(), YCompoundFiles::CompoundFile::SaveBAT(), YCompoundFiles::CompoundFile::SaveHeader(), Swap(), and YCompoundFiles::CompoundFile::WriteData().
|
protected |
Definition at line 102 of file BasicExcel.hpp.
Referenced by Close(), Erase(), GetBlockSize(), Open(), Read(), SetBlockSize(), Swap(), and Write().
|
protected |
|
protected |
|
protected |
Definition at line 104 of file BasicExcel.hpp.
Referenced by Close(), Erase(), Open(), SetBlockSize(), and Write().
|
protected |
|
protected |