|
Jpp
|
Auxiliary class to handle multiple boolean-like I/O. More...
#include <JParser.hh>
Public Member Functions | |
| JCounter () | |
| Default constructor. More... | |
| virtual bool | getStatus () const |
| Get status of this counter. More... | |
| bool | less (const JCounter &value) const |
| Compare value. More... | |
| bool | less (const int value) const |
| Compare value. More... | |
| bool | more (const int value) const |
| Compare value. More... | |
| int | getCounter () const |
| Get counter. More... | |
| const JCounter & | operator= (const bool value) |
| Set value. More... | |
| operator bool () const | |
| Type conversion operator. More... | |
| bool | operator! () const |
| Negated status of this object. More... | |
Protected Attributes | |
| int | counter |
Friends | |
| std::istream & | operator>> (std::istream &in, JCounter &object) |
| Read option from input. More... | |
| std::ostream & | operator<< (std::ostream &out, const JCounter &object) |
| Write options to output. More... | |
Auxiliary class to handle multiple boolean-like I/O.
Definition at line 218 of file JParser.hh.
|
inline |
Default constructor.
Definition at line 226 of file JParser.hh.
|
inlinevirtual |
Get status of this counter.
Implements JLANG::JAbstractObjectStatus.
Definition at line 236 of file JParser.hh.
|
inline |
Compare value.
| value | value |
Definition at line 248 of file JParser.hh.
|
inline |
Compare value.
| value | value |
Definition at line 260 of file JParser.hh.
|
inline |
Compare value.
| value | value |
Definition at line 272 of file JParser.hh.
|
inline |
|
inline |
Set value.
Note that no assignment actually takes place but the internal counter is set to one.
| value | value |
Definition at line 297 of file JParser.hh.
|
inlineinherited |
Type conversion operator.
Definition at line 33 of file JAbstractObjectStatus.hh.
|
inlineinherited |
Negated status of this object.
Definition at line 44 of file JAbstractObjectStatus.hh.
|
friend |
Read option from input.
Note that no value actually is read, only the internal counter is incremented.
| in | input stream |
| object | option |
Definition at line 314 of file JParser.hh.
|
friend |
Write options to output.
| out | output stream |
| object | option |
Definition at line 329 of file JParser.hh.
|
protected |
Definition at line 337 of file JParser.hh.
1.8.5