Atlas
0.7.0
Networking protocol for the Worldforge system.
MultiLineListFormatter.h
1
// Copyright (C) 2009 Alistair Riddoch
2
//
3
// This program is free software; you can redistribute it and/or modify
4
// it under the terms of the GNU General Public License as published by
5
// the Free Software Foundation; either version 2 of the License, or
6
// (at your option) any later version.
7
//
8
// This program is distributed in the hope that it will be useful,
9
// but WITHOUT ANY WARRANTY; without even the implied warranty of
10
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
// GNU General Public License for more details.
12
//
13
// You should have received a copy of the GNU General Public License
14
// along with this program; if not, write to the Free Software Foundation,
15
// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
17
#ifndef ATLAS_MULTI_LINE_LIST_FORMATTER_H
18
#define ATLAS_MULTI_LINE_LIST_FORMATTER_H
19
20
#include "Formatter.h"
21
22
namespace
Atlas
{
23
27
class
MultiLineListFormatter
:
public
Atlas::Formatter
28
{
29
public
:
30
MultiLineListFormatter
(std::ostream& s,
Atlas::Bridge
& b);
31
32
void
mapListItem
(std::string name)
override
;
33
34
void
listMapItem
()
override
;
35
void
listListItem
()
override
;
36
void
listIntItem
(std::int64_t l)
override
;
37
void
listFloatItem
(
double
d)
override
;
38
void
listStringItem
(std::string s)
override
;
39
void
listNoneItem
()
override
;
40
void
listEnd
()
override
;
41
42
};
43
44
}
45
#endif
// ATLAS_MULTI_LINE_LIST_FORMATTER_H
Atlas::Bridge
Definition:
Bridge.h:36
Atlas::Formatter
Definition:
Formatter.h:24
Atlas::MultiLineListFormatter
A formatter which uses multiple lines for list contents.
Definition:
MultiLineListFormatter.h:28
Atlas::MultiLineListFormatter::listStringItem
void listStringItem(std::string s) override
Definition:
MultiLineListFormatter.cpp:63
Atlas::MultiLineListFormatter::listNoneItem
void listNoneItem() override
Definition:
MultiLineListFormatter.cpp:70
Atlas::MultiLineListFormatter::listIntItem
void listIntItem(std::int64_t l) override
Definition:
MultiLineListFormatter.cpp:49
Atlas::MultiLineListFormatter::listListItem
void listListItem() override
Definition:
MultiLineListFormatter.cpp:41
Atlas::MultiLineListFormatter::listEnd
void listEnd() override
Definition:
MultiLineListFormatter.cpp:77
Atlas::MultiLineListFormatter::mapListItem
void mapListItem(std::string name) override
Definition:
MultiLineListFormatter.cpp:29
Atlas::MultiLineListFormatter::listFloatItem
void listFloatItem(double d) override
Definition:
MultiLineListFormatter.cpp:56
Atlas::MultiLineListFormatter::listMapItem
void listMapItem() override
Definition:
MultiLineListFormatter.cpp:36
Atlas
Definition:
Bridge.h:20
src
Atlas
MultiLineListFormatter.h
Generated by
1.9.1