mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-20 11:29:18 +02:00
additional sound type for local brake, support for combined sounds
This commit is contained in:
6
parser.h
6
parser.h
@@ -61,6 +61,11 @@ class cParser //: public std::stringstream
|
||||
bool
|
||||
ok() {
|
||||
return !mStream->fail(); };
|
||||
cParser &
|
||||
autoclear( bool const Autoclear );
|
||||
bool
|
||||
autoclear() const {
|
||||
return m_autoclear; }
|
||||
bool
|
||||
getTokens( unsigned int Count = 1, bool ToLower = true, char const *Break = "\n\r\t ;" );
|
||||
// returns next incoming token, if any, without removing it from the set
|
||||
@@ -91,6 +96,7 @@ class cParser //: public std::stringstream
|
||||
bool trimComments( std::string &String );
|
||||
std::size_t count();
|
||||
// members:
|
||||
bool m_autoclear { true }; // not retrieved tokens are discarded when another read command is issued (legacy behaviour)
|
||||
bool LoadTraction; // load traction?
|
||||
std::shared_ptr<std::istream> mStream; // relevant kind of buffer is attached on creation.
|
||||
std::string mFile; // name of the open file, if any
|
||||
|
||||
Reference in New Issue
Block a user