Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
LineInterface.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <string>
9
10namespace cli {
11
16public:
17 virtual bool readline ( std::string & line, bool first ) = 0;
18
19 virtual void lineCallback ( const std::string & ) const {
20 }
21
22public:
23 LineInterface ( ) = default;
24
25 LineInterface ( LineInterface && ) noexcept = default;
26
27 LineInterface ( const LineInterface & ) = delete;
28
29 LineInterface & operator = ( LineInterface && ) noexcept = delete;
30
31 LineInterface & operator = ( const LineInterface & ) = delete;
32
33 virtual ~LineInterface ( ) noexcept = default;
34};
35
36} // namespace cli
37
Definition: LineInterface.h:15
virtual void lineCallback(const std::string &) const
Definition: LineInterface.h:19
LineInterface()=default
virtual bool readline(std::string &line, bool first)=0
LineInterface(LineInterface &&) noexcept=default
Definition: Arg.h:11