ZenLib
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
ZenLib
Format
Html
Html_Handler.h
Go to the documentation of this file.
1
// ZenLib::Format::Html::Handler - A HTML Handler
2
// Copyright (C) 2008-2011 MediaArea.net SARL, Info@MediaArea.net
3
//
4
// This software is provided 'as-is', without any express or implied
5
// warranty. In no event will the authors be held liable for any damages
6
// arising from the use of this software.
7
//
8
// Permission is granted to anyone to use this software for any purpose,
9
// including commercial applications, and to alter it and redistribute it
10
// freely, subject to the following restrictions:
11
//
12
// 1. The origin of this software must not be misrepresented; you must not
13
// claim that you wrote the original software. If you use this software
14
// in a product, an acknowledgment in the product documentation would be
15
// appreciated but is not required.
16
// 2. Altered source versions must be plainly marked as such, and must not be
17
// misrepresented as being the original software.
18
// 3. This notice may not be removed or altered from any source distribution.
19
//
20
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
21
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
22
//
23
// A HTML Handler
24
//
25
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
26
27
//---------------------------------------------------------------------------
28
#ifndef ZenLib_Server_Html_HandlerH
29
#define ZenLib_Server_Html_HandlerH
30
//---------------------------------------------------------------------------
31
32
//---------------------------------------------------------------------------
33
#include <string>
34
#include <ctime>
35
#include <map>
36
#include <vector>
37
#include "
ZenLib/Ztring.h
"
38
//---------------------------------------------------------------------------
39
40
namespace
ZenLib
41
{
42
43
namespace
Format
44
{
45
46
namespace
Html
47
{
48
49
//***************************************************************************
50
/// @brief
51
//***************************************************************************
52
53
struct
header
54
{
55
//In
56
Ztring
Title
;
57
Ztring
Language
;
58
59
//Init
60
header
()
61
{
62
}
63
};
64
65
class
Handler
66
{
67
public
:
68
//Constructor/Destructor
69
Handler
();
70
71
//Maintenance
72
void
CleanUp
();
73
74
//The data
75
header
Header
;
76
};
77
78
}
//Namespace
79
80
}
//Namespace
81
82
}
//Namespace
83
84
#define ENDL "\r\n"
85
#define HTML_ENDL "<br />\r\n"
86
87
#endif
88
89
90
91
Generated on Sun Oct 21 2012 19:54:34 for ZenLib by
1.8.2