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 
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
A formatter which uses multiple lines for list contents.
void listStringItem(std::string s) override
void listIntItem(std::int64_t l) override
void mapListItem(std::string name) override
void listFloatItem(double d) override
Definition: Bridge.h:20