Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
StructuredOutput.h
1
/*
2
* StructuredOutput class interface
3
*
4
* This file is part of OTAWA
5
* Copyright (c) 2021, IRIT UPS.
6
*
7
* OTAWA is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
11
*
12
* OTAWA is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with OTAWA; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
*/
21
#ifndef ELM_IO_STRUCTURED_OUTPUT_H
22
#define ELM_IO_STRUCTURED_OUTPUT_H
23
24
#include <elm/types.h>
25
26
namespace
elm
{
namespace
io {
27
28
class
StructuredOutput
{
29
public
:
30
virtual
~StructuredOutput
();
31
virtual
void
write
(
bool
x) = 0;
32
virtual
void
write
(
char
c) = 0;
33
virtual
void
write
(
signed
char
) = 0;
34
virtual
void
write
(
unsigned
char
) = 0;
35
virtual
void
write
(
short
x) = 0;
36
virtual
void
write
(
unsigned
short
x) = 0;
37
virtual
void
write
(
int
x) = 0;
38
virtual
void
write
(
unsigned
int
x) = 0;
39
virtual
void
write
(
long
x) = 0;
40
virtual
void
write
(
unsigned
long
x) = 0;
41
virtual
void
write
(
long
long
int
x) = 0;
42
virtual
void
write
(
long
long
unsigned
int
x) = 0;
43
virtual
void
write
(
float
x) = 0;
44
virtual
void
write
(
double
x) = 0;
45
virtual
void
write
(
long
double
x) = 0;
46
virtual
void
write
(
const
char
*s) = 0;
47
virtual
void
write
(
cstring
x) = 0;
48
virtual
void
write
(
const
string
& x) = 0;
49
inline
void
key
(
const
char
*x) {
key
(
cstring
(x)); }
50
virtual
void
key
(
cstring
x) = 0;
51
virtual
void
key
(
const
string
& x) = 0;
52
virtual
void
beginMap
() = 0;
53
virtual
void
endMap
() = 0;
54
virtual
void
beginList
() = 0;
55
virtual
void
endList
() = 0;
56
};
57
58
}}
// otawa::io
59
60
#endif // ELM_IO_STRUCTURED_OUTPUT_H
elm::cstring
CString cstring
Definition:
CString.h:62
elm::CString
Definition:
CString.h:17
elm::io::StructuredOutput::write
virtual void write(bool x)=0
elm
Definition:
adapter.h:26
elm::io::StructuredOutput::endMap
virtual void endMap()=0
elm::io::StructuredOutput
Definition:
StructuredOutput.h:28
elm::io::StructuredOutput::beginList
virtual void beginList()=0
elm::io::StructuredOutput::endList
virtual void endList()=0
elm::io::StructuredOutput::key
void key(const char *x)
Definition:
StructuredOutput.h:49
elm::io::StructuredOutput::~StructuredOutput
virtual ~StructuredOutput()
Definition:
io_StructuredOutput.cpp:56
elm::io::StructuredOutput::beginMap
virtual void beginMap()=0
include
elm
io
StructuredOutput.h
Generated on Fri Jul 23 2021 11:32:45 for Elm by
1.8.17