Atlas-C++
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(long l) override;
37  void listFloatItem(double d) override;
38  void listStringItem(std::string s) override;
39  void listEnd() override;
40 
41 };
42 
43 }
44 #endif // ATLAS_MULTI_LINE_LIST_FORMATTER_H
A formatter which uses multiple lines for list contents.
Definition: MultiLineListFormatter.h:27
Atlas stream bridge.
Definition: Bridge.h:35
Atlas stream formatter.
Definition: Formatter.h:23
The Atlas namespace.
Definition: Bridge.h:20
void listIntItem(long l) override
Adds an integer to the currently streames list.
void mapListItem(std::string name) override
Starts a list object to the currently streamed map.
void listMapItem() override
Starts a map object in the currently streamed list.
void listFloatItem(double d) override
Adds a float to the currently streamed list.
void listStringItem(std::string s) override
Adds a string to the currently streamed list.
void listListItem() override
Starts a list object in the currently streamed list.
void listEnd() override
Ends the currently streamed list.

Copyright 2000-2004 the respective authors.

This document can be licensed under the terms of the GNU Free Documentation License or the GNU General Public License and may be freely distributed under the terms given by one of these licenses.