Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
cgicc
MStreamable.h
Go to the documentation of this file.
1
/* -*-mode:c++; c-file-style: "gnu";-*- */
2
/*
3
* $Id: MStreamable.h,v 1.12 2007/07/02 18:48:19 sebdiaz Exp $
4
*
5
* Copyright (C) 1996 - 2004 Stephen F. Booth <sbooth@gnu.org>
6
* 2007 Sebastien DIAZ <sebastien.diaz@gmail.com>
7
* Part of the GNU cgicc library, http://www.gnu.org/software/cgicc
8
*
9
* This library is free software; you can redistribute it and/or
10
* modify it under the terms of the GNU Lesser General Public
11
* License as published by the Free Software Foundation; either
12
* version 3 of the License, or (at your option) any later version.
13
*
14
* This library is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
* Lesser General Public License for more details.
18
*
19
* You should have received a copy of the GNU Lesser General Public
20
* License along with this library; if not, write to the Free Software
21
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
22
*/
23
24
#ifndef _MSTREAMABLE_H_
25
#define _MSTREAMABLE_H_ 1
26
27
#ifdef __GNUG__
28
# pragma interface
29
#endif
30
38
#include <iostream>
39
40
#include "
cgicc/CgiDefs.h
"
41
42
namespace
cgicc {
43
44
class
MStreamable;
45
52
CGICC_API std::ostream&
53
operator<<
(std::ostream& out,
const
MStreamable& obj);
54
55
// ============================================================
56
// Class MStreamable
57
// ============================================================
58
66
class
CGICC_API
MStreamable
67
{
68
69
friend
CGICC_API std::ostream&
70
operator<<
(std::ostream& out,
const
MStreamable
& obj);
71
72
public
:
77
inline
MStreamable
()
78
{}
79
84
inline
virtual
~
MStreamable
()
85
{}
86
93
virtual
void
94
render(std::ostream& out)
const
= 0;
95
};
96
97
}
// namespace cgicc
98
99
#endif
/* ! _MSTREAMABLE_H_ */
GNU cgicc
- A C++ class library for writing CGI applications
Copyright © 1996 - 2004
Stephen F. Booth
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front Cover Texts, and with no Back-Cover Texts.
Documentation generated Tue May 14 2013 02:07:54 for cgicc by
doxygen
1.8.3.1