|
|
|
|
|
|
Modules Namespace List Class Hierarchy Alphabetical List Compound List Namespace Members Compound Members Related Pages
acdk::text::Template Class Reference#include <Template.h>
Inheritance diagram for acdk::text::Template:
List of all members.
Detailed Description
Template functionality for generating documents API: ACDK
- Author:
- Roger Rene Kommer
- Version:
- Revision
- 1.8
- Date:
- Date
- 2005/02/05 10:45:33
- Bug:
- Incomplete
|
Public Member Functions |
| Template (RString text) |
| .
|
virtual void | registerTextListener (IN(RString) str, IN(RTemplateFilter) filter) |
virtual void | registerPatternListener (IN(RString) pattern, IN(RTemplateFilter) filter) |
virtual RString | filter (int startoffset=0, int endoffset=0) |
| Regexp reg(ab(.*)cdef); Fiter will return XYZ; filter(2, 3), will call filter with matching (.*)-Expression, an will ignore ab at start and cde an end in replace Text = 12ab_cdef34: Template::filter returns 12XYZf34
- startoffset the offset, into the matching, which will skiped in replacement
- endoffset the offset, into the matching, which will skiped in replacement.
|
Protected Attributes |
RString | _text |
acdk::util::RArrayList | _filter |
Constructor & Destructor Documentation
acdk::text::Template::Template |
( |
RString |
text |
) |
|
|
|
- Parameters:
-
text | the template text, which should be filtered |
|
Member Function Documentation
virtual RString acdk::text::Template::filter |
( |
int |
startoffset = 0, |
|
|
int |
endoffset = 0 |
|
) |
[virtual] |
|
|
Regexp reg(ab(.*)cdef); Fiter will return XYZ; filter(2, 3), will call filter with matching (.*)-Expression, an will ignore ab at start and cde an end in replace Text = 12ab_cdef34: Template::filter returns 12XYZf34
- startoffset the offset, into the matching, which will skiped in replacement
- endoffset the offset, into the matching, which will skiped in replacement.
- Returns:
- the filtered text
|
virtual void acdk::text::Template::registerPatternListener |
( |
IN(RString) |
pattern, |
|
|
IN(RTemplateFilter) |
filter |
|
) |
[virtual] |
|
virtual void acdk::text::Template::registerTextListener |
( |
IN(RString) |
str, |
|
|
IN(RTemplateFilter) |
filter |
|
) |
[virtual] |
|
Member Data Documentation
|
|