source: trunk/lib/html_utility.h @ 177

Last change on this file since 177 was 177, checked in by peter, 12 years ago

moved html related utility to its own 'html_utility'

File size: 1.6 KB
Line 
1#ifndef _theplu_svndigest_html_utility_
2#define _theplu_svndigest_html_utility_
3
4// $Id$
5
6/*
7        Copyright (C) 2006 Peter Johansson
8
9        This file is part of svndigest, http://lev.thep.lu.se/trac/svndigest
10
11        svndigest is free software; you can redistribute it and/or modify it
12        under the terms of the GNU General Public License as published by
13        the Free Software Foundation; either version 2 of the License, or
14        (at your option) any later version.
15
16        svndigest is distributed in the hope that it will be useful, but
17        WITHOUT ANY WARRANTY; without even the implied warranty of
18        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19        General Public License for more details.
20
21        You should have received a copy of the GNU General Public License
22        along with this program; if not, write to the Free Software
23        Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
24        02111-1307, USA.
25*/
26
27#include <algorithm>
28#include <functional>
29#include <iosfwd>
30#include <string>
31#include <utility>
32#include <vector>
33
34#include <sys/stat.h>
35
36namespace theplu{
37namespace svndigest{
38
39        ///
40        /// @brief send anchor to stream @a os
41        ///
42        /// @param address to link to
43        /// @param name text visible on page
44        /// @param level '../' is added @a level times before @a href
45        /// @param title title of anchor
46        ///
47        void anchor(std::ostream& os, const std::string& href, 
48                                                        const std::string& name, u_int level=0, 
49                                                        const std::string& title="");
50
51        ///
52        /// @printing cascading style sheet to stream @a s.
53        ///
54        void print_css(std::ostream& s);
55
56}} // end of namespace svndigest end of namespace theplu
57
58#endif
Note: See TracBrowser for help on using the repository browser.