#include <SpeciesDB.h>
Definition at line 45 of file SpeciesDB.h.
SpeciesDB::SpeciesDB |
( |
const char * |
filename | ) |
|
|
inline |
const std::string& SpeciesDB::getDirectory |
( |
| ) |
const |
|
inline |
const std::string& SpeciesDB::getFilename |
( |
| ) |
const |
|
inline |
dword SpeciesDB::getSelectionID |
( |
int |
dir = 0 , |
|
|
bool |
wrap = true |
|
) |
| |
Definition at line 54 of file SpeciesDB.cpp.
std::list< dword > m_Selection
std::list< dword >::iterator m_CSel
bool SpeciesDB::load |
( |
const char * |
filename | ) |
|
dword SpeciesDB::loadSelection |
( |
const std::string & |
fname | ) |
|
|
inline |
Definition at line 61 of file SpeciesDB.h.
dword loadSelection(const std::string &fname)
std::list< dword > m_Selection
dword SpeciesDB::loadSelection |
( |
const std::string & |
fname, |
|
|
std::list< dword > & |
sel |
|
) |
| |
|
static |
Definition at line 78 of file SpeciesDB.cpp.
81 ifstream is(fname.c_str());
88 if(selid) sel.push_back(selid);
Definition at line 37 of file SpeciesDB.cpp.
Referenced by Brain::doCommand().
40 for(map<dword,Species>::const_iterator s=begin(); s!=end(); s++)
41 if(s->second.select(sp, how))
std::list< dword > m_Selection
std::list< dword >::iterator m_CSel
dword SpeciesDB::select |
( |
const std::list< dword > & |
idlist | ) |
|
Definition at line 47 of file SpeciesDB.cpp.
std::list< dword > m_Selection
std::list< dword >::iterator m_CSel
dword SpeciesDB::writeSelection |
( |
const std::string & |
fname | ) |
const |
|
inline |
Definition at line 63 of file SpeciesDB.h.
dword writeSelection(const std::string &fname) const
std::list< dword > m_Selection
dword SpeciesDB::writeSelection |
( |
const std::string & |
fname, |
|
|
const std::list< dword > & |
sel |
|
) |
| |
|
static |
Definition at line 94 of file SpeciesDB.cpp.
97 ofstream os(fname.c_str());
99 for(list<dword>::const_iterator csel = sel.begin();
100 csel != sel.end(); csel++)
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const SpeciesDB & |
sp |
|
) |
| |
|
friend |
Definition at line 118 of file SpeciesDB.cpp.
120 for(map<dword,Species>::const_iterator s=sp.begin(); s!=sp.end(); s++)
121 os << s->second << endl;
std::list<dword>::iterator SpeciesDB::m_CSel |
|
protected |
std::string SpeciesDB::m_Directory |
|
protected |
std::string SpeciesDB::m_Filename |
|
protected |
std::list<dword> SpeciesDB::m_Selection |
|
protected |
The documentation for this class was generated from the following files: