|
Jpp 19.3.0-rc.1
the software that should make you happy
|
Template specialisation of JPARSER::JParserTemplateElement for type JCounter.
More...
#include <JParser.hh>
Public Member Functions | |
| JParserTemplateElement (JCounter &object, const std::string &name, const std::string &help="") | |
| Constructor. | |
| virtual std::istream & | read (std::istream &in) override |
| Stream input. | |
| virtual std::ostream & | write (std::ostream &out) const override |
| Stream output. | |
| virtual bool | getStatus () const override |
| Status of object. | |
| virtual bool | getInitialisationStatus () const override |
| Get initialisation status of parameter. | |
| virtual void | setInitialiationStatus (const bool value) override |
| Set initialisation status of parameter. | |
| virtual bool | gcount () const override |
| Read counter. | |
| const std::string & | getName () const |
| Get name of parameter. | |
| const std::string & | getHelp () const |
| Get help of parameter. | |
| virtual void | print (std::ostream &out) const |
| Print. | |
Protected Attributes | |
| std::string | __name |
| std::string | __help |
Private Attributes | |
| JCounter & | object |
Template specialisation of JPARSER::JParserTemplateElement for type JCounter.
The value is by default set to zero and set incremented in method read() without reading any data. This makes it possible to parse mutiple options in one go (e.g. -aaa). This class implements the JPARSER::JParserElementInterface interface.
Definition at line 1366 of file JParser.hh.
|
inline |
Constructor.
The constructor assigns the default value false to the referenced parameter.
| object | reference to object |
| name | name of object |
| help | help of object |
Definition at line 1379 of file JParser.hh.
|
inlineoverridevirtual |
Stream input.
This method sets the value to true, without reading any data.
| in | input stream |
Implements JLANG::JStreamInput.
Definition at line 1394 of file JParser.hh.
|
inlineoverridevirtual |
Stream output.
| out | output stream |
Implements JLANG::JStreamOutput.
Definition at line 1406 of file JParser.hh.
|
inlineoverridevirtual |
Status of object.
Implements JPARSER::JParserElementInterface.
Definition at line 1417 of file JParser.hh.
|
inlineoverridevirtual |
Get initialisation status of parameter.
Implements JPARSER::JParserElementInterface.
Definition at line 1428 of file JParser.hh.
|
inlineoverridevirtual |
Set initialisation status of parameter.
This implementation doesn't do anything.
| value | initialisation status |
Implements JPARSER::JParserElementInterface.
Definition at line 1440 of file JParser.hh.
|
inlineoverridevirtual |
Read counter.
Reimplemented from JPARSER::JParserElementInterface.
Definition at line 1449 of file JParser.hh.
|
inlineinherited |
|
inlineinherited |
|
inlinevirtualinherited |
Print.
| out | output stream |
Reimplemented in JPARSER::JParserTemplateElement< JType_t, true >.
Definition at line 616 of file JParser.hh.
|
private |
Definition at line 1456 of file JParser.hh.
|
protectedinherited |
Definition at line 653 of file JParser.hh.
|
protectedinherited |
Definition at line 654 of file JParser.hh.