Salome HOME
NRI : Temporary modification for reading catalog of modules.
[modules/kernel.git] / src / SALOMEGUI / QAD_ParserSettings.h
1 //  File      : QAD_ParserSettings.h
2 //  Created   : Sat Sep 08 21:58:39 2001
3 //  Author    : Nicolas REJNERI
4 //  Project   : SALOME
5 //  Module    : SALOMEGUI
6 //  Copyright : Open CASCADE
7 //  $Header$
8
9 #ifndef QAD_PARSERSETTINGS_H
10 #define QAD_PARSERSETTINGS_H
11
12 #include <qstring.h>
13
14 class QAD_ParserSettings
15 {
16 public:
17   QAD_ParserSettings();
18   ~QAD_ParserSettings();
19
20   static QString getContents(QString fileName, bool comments=true, 
21                              bool sections=true, bool whitespace=true, 
22                              bool htmlComments=true);
23   static QString getSection(QString s, QString sectionName);
24   static QString getHtmlComment(QString s);
25   static QString getNextStringBetween(QString s, int& startIndex, QChar starter, QChar stopper);
26   static QString getNextStringUntil(QString s, int& startIndex, QChar stopper);
27   static QString removeComments(QString s);
28   static QString removeHtmlComments(QString s);
29   static QString removeSections(QString s);
30   static QString plainTextToHtml(QString s, int autoBreak);
31   static QString charToHtml(QChar c);
32
33 };
34
35 #endif