ALBA
albaHTMLTemplateParser.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaHTMLTemplateParser
5 Authors: Gianluigi Crimi
6
7 Copyright (c) BIC
8 All rights reserved. See Copyright.txt or
9
10
11 This software is distributed WITHOUT ANY WARRANTY; without even
12 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13 PURPOSE. See the above copyright notice for more information.
14
15=========================================================================*/
16
17#ifndef __albaHTMLTemplateParser_H__
18#define __albaHTMLTemplateParser_H__
19
20//----------------------------------------------------------------------------
21// Include:
22//----------------------------------------------------------------------------
23#include "albaDefines.h"
25
36{
37public:
38
43
45 void SetTemplateFromFile(wxString filename);
47 void SetTemplateFromString(wxString templateString);
49 wxString GetOutputString();
51 void WriteOutputFile(wxString filename);
52
57 void Parse();
58
59protected:
60 //albaHTMLTemplateParserBlock *m_MainBlock;
61 wxString m_Template;
62 wxString m_Output;
63};
64#endif
class name: albaHTMLTemplateParserBlock sub-class for Template parsing used by albaHTMLTemplateParser
class name: albaHTMLTemplateParser class for Template parsing of a text file/string (typically an htm...
wxString GetOutputString()
Return the Parsed output.
void SetTemplateFromString(wxString templateString)
Set the template from a string.
void Parse()
Template parsing Updates all the structures and generate internal output Note: this function must b...
albaHTMLTemplateParser()
constructor
void WriteOutputFile(wxString filename)
Writes the output to disk.
void SetTemplateFromFile(wxString filename)
Set the template from a file.
~albaHTMLTemplateParser()
destructor