DCL
3.7.4
Loading...
Searching...
No Matches
DocParser.h
Go to the documentation of this file.
1
#ifndef __DOC_PARSER_H__
2
#define __DOC_PARSER_H__ 20031212
3
4
#ifndef __DCL_OBJECT_H__
5
#include <
dcl/Object.h
>
6
#endif
7
8
#ifndef __DOC_SYNTAX_H__
9
#include "
DocSyntax.h
"
10
#endif
11
12
__DCL_BEGIN_NAMESPACE
13
14
enum
BlockType
15
{
16
normal
,
17
comment
,
18
quotation
,
19
keyword
20
};
21
22
struct
DOC_BLOCK
23
{
24
const
wchar_t
*
pData
;
25
size_t
nDataSize
;
26
BlockType
type
;
27
};
28
29
class
DocParser
:
public
Object
30
{
31
public
:
32
DocParser
(
const
wchar_t
* pchData,
size_t
nDataSize,
const
DocSyntax
* pSyntax);
33
bool
getNextBlock
(
DOC_BLOCK
& block);
// false then eof
34
35
protected
:
36
const
DocSyntax
*
__pSyntax
;
37
const
wchar_t
*
__pCurrent
;
38
const
wchar_t
*
__pEnd
;
39
};
40
41
__DCL_END_NAMESPACE
42
43
#endif
// __DOC_PARSER_H__
BlockType
BlockType
Definition
DocParser.h:15
quotation
@ quotation
Definition
DocParser.h:18
comment
@ comment
Definition
DocParser.h:17
keyword
@ keyword
Definition
DocParser.h:19
normal
@ normal
Definition
DocParser.h:16
DocSyntax.h
Object.h
DocParser::__pCurrent
const wchar_t * __pCurrent
Definition
DocParser.h:37
DocParser::__pEnd
const wchar_t * __pEnd
Definition
DocParser.h:38
DocParser::__pSyntax
const DocSyntax * __pSyntax
Definition
DocParser.h:36
DocParser::getNextBlock
bool getNextBlock(DOC_BLOCK &block)
Definition
DocParser.cpp:32
DocParser::DocParser
DocParser(const wchar_t *pchData, size_t nDataSize, const DocSyntax *pSyntax)
Definition
DocParser.cpp:13
DocSyntax
Definition
DocSyntax.h:19
Object::Object
Object()
Definition
Object.cpp:183
DOC_BLOCK
Definition
DocParser.h:23
DOC_BLOCK::type
BlockType type
Definition
DocParser.h:26
DOC_BLOCK::pData
const wchar_t * pData
Definition
DocParser.h:24
DOC_BLOCK::nDataSize
size_t nDataSize
Definition
DocParser.h:25
hse
HSAIDoc
DocParser.h
Generated by
1.14.0