File: format.h

package info (click to toggle)
html2text 1.3.2a-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 736 kB
  • ctags: 1,694
  • sloc: cpp: 9,311; yacc: 828; sh: 209; makefile: 144
file content (75 lines) | stat: -rw-r--r-- 2,440 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75

 /***************************************************************************/

/*
 * Portions Copyright (c) 1999 GMRS Software GmbH
 * Carl-von-Linde-Str. 38, D-85716 Unterschleissheim, http://www.gmrs.de
 * All rights reserved.
 *
 * Author: Arno Unkrig <arno@unkrig.de>
 */
 
/* This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License in the file COPYING for more details.
 */

 /***************************************************************************/

/*
 * Changes to version 1.2.2 were made by Martin Bayer <mbayer@zedat.fu-berlin.de>
 * Dates and reasons of modifications:
 * Fre Jun  8 17:49:39 CEST 2001: new method
 * Thu Oct  4 21:36:51 CEST 2001: ported to g++ 3.0
 * Wed Jul  2 22:05:32 CEST 2003: ported to g++ 3.3
 */
  
 /***************************************************************************/


#ifndef __format_h_INCLUDED__ /* { */
#define __format_h_INCLUDED__

/* ------------------------------------------------------------------------- */

#include <string>
#include <vector>
#include <istream>

using std::string;
using std::vector;
using std::istream;


/* ------------------------------------------------------------------------- */

class Formatting {

public:
  static void           setProperty(const char *key, const char *value);
  static void           loadProperties(istream &is);

  static const char     *getString(const char *key, const char *dflt);
// neue Methode fuer leere Attribute - Johannes Geiger
  static const char     *getString(const char *key);
  static vector<string> *getStringVector(const char *key, const char *dflt);
  static int            getInt(const char *key, int dflt);
  static vector<int> *  getIntVector(const char *key, const char *dflt);
  static char           getAttributes(const char *key, char dflt);

private:
  Formatting();    // Do not instantiate me!
};

/* ------------------------------------------------------------------------- */

#endif /* } */

/* ------------------------------------------------------------------------- */