COPASI API
4.16.103
|
#include <CExperimentFileInfo.h>
Classes | |
class | CExperimentInfo |
Public Member Functions | |
bool | adjustForEmptyLines (size_t &First, size_t &Last) |
CExperimentFileInfo (CExperimentSet &set) | |
CExperiment * | getExperiment (const std::string &name) |
std::vector< std::string > | getExperimentNames () const |
const std::string & | getFileName () const |
bool | getFirstUnusedSection (size_t &First, size_t &Last) |
bool | getNextUnusedSection (size_t &First, size_t &Last) |
bool | setFileName (const std::string &fileName) |
bool | sync () |
bool | validate () const |
bool | validateFirst (const size_t &index, const size_t &value) |
bool | validateHeader (const size_t &index, const size_t &value) |
bool | validateLast (const size_t &index, const size_t &value) |
~CExperimentFileInfo () | |
Private Member Functions | |
CExperimentFileInfo () | |
Private Attributes | |
std::vector< size_t > | mEmptyLines |
std::string | mFileName |
size_t | mLines |
std::vector< CExperimentInfo * > | mList |
CExperimentSet * | mpSet |
size_t | mUsedEnd |
Definition at line 30 of file CExperimentFileInfo.h.
|
private |
Definition at line 28 of file CExperimentFileInfo.cpp.
CExperimentFileInfo::CExperimentFileInfo | ( | CExperimentSet & | set | ) |
Definition at line 37 of file CExperimentFileInfo.cpp.
CExperimentFileInfo::~CExperimentFileInfo | ( | ) |
Definition at line 46 of file CExperimentFileInfo.cpp.
References mList, and pdelete.
bool CExperimentFileInfo::adjustForEmptyLines | ( | size_t & | First, |
size_t & | Last | ||
) |
Definition at line 270 of file CExperimentFileInfo.cpp.
References getNextUnusedSection(), mEmptyLines, and mUsedEnd.
Referenced by getNextUnusedSection().
CExperiment * CExperimentFileInfo::getExperiment | ( | const std::string & | name | ) |
Definition at line 214 of file CExperimentFileInfo.cpp.
References mList.
Referenced by CQExperimentData::slotCheckFrom(), CQExperimentData::slotExperimentChanged(), and CQExperimentData::slotExperimentDelete().
std::vector< std::string > CExperimentFileInfo::getExperimentNames | ( | ) | const |
Definition at line 202 of file CExperimentFileInfo.cpp.
References mList.
Referenced by CQExperimentData::slotFileChanged(), and CQExperimentData::syncExperiments().
const std::string & CExperimentFileInfo::getFileName | ( | ) | const |
Definition at line 111 of file CExperimentFileInfo.cpp.
References mFileName.
Referenced by CQExperimentData::slotExperimentAdd().
bool CExperimentFileInfo::getFirstUnusedSection | ( | size_t & | First, |
size_t & | Last | ||
) |
Definition at line 225 of file CExperimentFileInfo.cpp.
References getNextUnusedSection(), and mUsedEnd.
Referenced by CQExperimentData::saveExperiment(), CQExperimentData::slotExperimentAdd(), CQExperimentData::slotExperimentDelete(), CQExperimentData::slotFileAdd(), CQExperimentData::slotFileChanged(), and CQExperimentDataValidator::validate().
bool CExperimentFileInfo::getNextUnusedSection | ( | size_t & | First, |
size_t & | Last | ||
) |
Definition at line 233 of file CExperimentFileInfo.cpp.
References adjustForEmptyLines(), C_INVALID_INDEX, mLines, mList, and mUsedEnd.
Referenced by adjustForEmptyLines(), getFirstUnusedSection(), and CQExperimentDataValidator::validate().
bool CExperimentFileInfo::setFileName | ( | const std::string & | fileName | ) |
Definition at line 56 of file CExperimentFileInfo.cpp.
References CLocaleString::fromUtf8(), mEmptyLines, mFileName, mLines, and sync().
Referenced by CQExperimentData::slotFileChanged().
bool CExperimentFileInfo::sync | ( | ) |
Definition at line 114 of file CExperimentFileInfo.cpp.
References C_INVALID_INDEX, CExperimentSet::getExperiment(), CExperimentSet::getExperimentCount(), CExperiment::getFileName(), mFileName, mList, mpSet, mUsedEnd, pdelete, CExperimentSet::sort(), and validate().
Referenced by CQExperimentData::saveExperiment(), setFileName(), CQExperimentData::slotExperimentAdd(), CQExperimentData::syncExperiments(), and CQExperimentDataValidator::validate().
bool CExperimentFileInfo::validate | ( | ) | const |
Definition at line 142 of file CExperimentFileInfo.cpp.
Referenced by sync(), validateFirst(), and validateLast().
bool CExperimentFileInfo::validateFirst | ( | const size_t & | index, |
const size_t & | value | ||
) |
Definition at line 159 of file CExperimentFileInfo.cpp.
References mLines, mList, and validate().
Referenced by CQExperimentDataValidator::validate().
bool CExperimentFileInfo::validateHeader | ( | const size_t & | index, |
const size_t & | value | ||
) |
Definition at line 193 of file CExperimentFileInfo.cpp.
Referenced by CQExperimentDataValidator::validate().
bool CExperimentFileInfo::validateLast | ( | const size_t & | index, |
const size_t & | value | ||
) |
Definition at line 176 of file CExperimentFileInfo.cpp.
References mLines, mList, and validate().
Referenced by CQExperimentDataValidator::validate().
|
private |
Definition at line 188 of file CExperimentFileInfo.h.
Referenced by adjustForEmptyLines(), and setFileName().
|
private |
Definition at line 168 of file CExperimentFileInfo.h.
Referenced by getFileName(), setFileName(), and sync().
|
private |
Definition at line 178 of file CExperimentFileInfo.h.
Referenced by getNextUnusedSection(), setFileName(), validate(), validateFirst(), validateHeader(), and validateLast().
|
private |
Definition at line 173 of file CExperimentFileInfo.h.
Referenced by getExperiment(), getExperimentNames(), getNextUnusedSection(), sync(), validate(), validateFirst(), validateHeader(), validateLast(), and ~CExperimentFileInfo().
|
private |
Definition at line 163 of file CExperimentFileInfo.h.
Referenced by sync().
|
private |
Definition at line 183 of file CExperimentFileInfo.h.
Referenced by adjustForEmptyLines(), getFirstUnusedSection(), getNextUnusedSection(), and sync().