source: tags/0.6.8/lib/html_utility.h @ 848

Last change on this file since 848 was 731, checked in by Peter Johansson, 13 years ago

update copyright statements

  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1#ifndef _theplu_svndigest_html_utility_
2#define _theplu_svndigest_html_utility_
3
4// $Id: html_utility.h 731 2008-12-15 19:03:04Z peter $
5
6/*
7  Copyright (C) 2006 Peter Johansson
8  Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson
9
10  This file is part of svndigest, http://dev.thep.lu.se/svndigest
11
12  svndigest is free software; you can redistribute it and/or modify it
13  under the terms of the GNU General Public License as published by
14  the Free Software Foundation; either version 2 of the License, or
15  (at your option) any later version.
16
17  svndigest is distributed in the hope that it will be useful, but
18  WITHOUT ANY WARRANTY; without even the implied warranty of
19  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20  General Public License for more details.
21
22  You should have received a copy of the GNU General Public License
23  along with this program; if not, write to the Free Software
24  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
25  02111-1307, USA.
26*/
27
28#include <fstream>
29#include <iosfwd>
30#include <string>
31#include <vector>
32
33namespace theplu{
34namespace svndigest{
35
36  ///
37  /// @brief create anchor
38  ///
39  /// @param url address to link to
40  /// @param name text visible on page
41  /// @param level '../' is added @a level times before @a href
42  /// @param title title of anchor
43  ///
44  std::string anchor(const std::string& url,
45                     const std::string& name, unsigned int level=0, 
46                     const std::string& title="");
47
48  ///
49  /// @Brief print html footer of page
50  ///
51  void print_footer(std::ostream&);
52   
53  ///
54  /// @brief print html header of page
55  ///
56  /// \param os stream to print to
57  /// \param name
58  /// \param level
59  /// \param
60  void print_header(std::ostream& os, std::string name, unsigned int level, 
61                    std::string user, std::string item, std::string path);
62
63
64  ///
65  /// @return if trac-revision is set in config file anchor to trac is
66  /// given otherwise just a string corresponding to passed parameter.
67  ///
68  std::string trac_revision(size_t);
69
70}} // end of namespace svndigest end of namespace theplu
71
72#endif
Note: See TracBrowser for help on using the repository browser.