File: FileWriter.h

package info (click to toggle)
bouml 4.21-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 73,336 kB
  • ctags: 55,459
  • sloc: cpp: 290,644; makefile: 228; sh: 13
file content (35 lines) | stat: -rw-r--r-- 508 bytes parent folder | download | duplicates (3)
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
#ifndef _FILEWRITER_H
#define _FILEWRITER_H


#include <qcstring.h>

class QFile;
class QTextStream;

// The original html generator was written in Java to test the Java 
// version of the API, this class allows to have a source code similar
// in C++
class FileWriter {
  public:
    bool open(QCString s);

    void close();

    void write(QCString s);

    void write(const char * s);

    void write(char c);

    void write(unsigned n);


  protected:
    QTextStream * ts;

    QFile * f;

};

#endif