ed
include
ed
io
reader.h
Go to the documentation of this file.
1
#ifndef ED_IO_READER_H_
2
#define ED_IO_READER_H_
3
4
#include <
string
>
5
6
#include <
istream
>
7
8
namespace
ed
9
{
10
11
namespace
io
12
{
13
14
class
Reader
15
{
16
17
public
:
18
19
Reader
() {}
20
21
virtual
~Reader
() {}
22
23
virtual
bool
readGroup
(
const
std::string
& name) = 0;
24
virtual
bool
endGroup
() = 0;
25
26
virtual
bool
readArray
(
const
std::string
& name) = 0;
27
virtual
bool
endArray
() = 0;
28
29
virtual
bool
nextArrayItem
() = 0;
30
31
virtual
bool
readValue
(
const
std::string
&,
float
& f) = 0;
32
virtual
bool
readValue
(
const
std::string
&,
double
& d) = 0;
33
virtual
bool
readValue
(
const
std::string
&,
int
& i) = 0;
34
virtual
bool
readValue
(
const
std::string
&,
std::string
& s) = 0;
35
36
virtual
bool
ok
() = 0;
37
38
virtual
std::string
error
() = 0;
39
40
};
41
42
}
43
44
}
// end namespace era
45
46
#endif
47
std::string
ed::io::Reader::~Reader
virtual ~Reader()
Definition:
reader.h:21
ed::io::Reader::endArray
virtual bool endArray()=0
istream
ed::io::Reader::readValue
virtual bool readValue(const std::string &, float &f)=0
ed::io::Reader::readArray
virtual bool readArray(const std::string &name)=0
ed::io::Reader::error
virtual std::string error()=0
ed::io::Reader
Definition:
reader.h:14
ed::io::Reader::readGroup
virtual bool readGroup(const std::string &name)=0
ed::io::Reader::ok
virtual bool ok()=0
ed::io::Reader::nextArrayItem
virtual bool nextArrayItem()=0
ed::io::Reader::Reader
Reader()
Definition:
reader.h:19
ed::io::Reader::endGroup
virtual bool endGroup()=0
ed
Definition:
convex_hull.h:8
string
Generated on Sun Feb 23 2025 04:34:40 for ed by
1.8.17