Changeset 9188
- Timestamp:
- 2005-02-25T14:29:08+13:00 (19 years ago)
- Location:
- trunk/gsdl/src/colservr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/colservr/expat_document.cpp
r9173 r9188 24 24 text_t current_text; 25 25 text_t section_num; 26 text_t section_level; 26 27 27 28 bool store_text = false; … … 32 33 { 33 34 text_t element_name = (char*)name; 34 if (element_name == "Sec") {35 if (element_name == section_level) { 35 36 text_t id_att = (char *)get_attribute(attributes,"gs2:id"); 36 37 if (id_att == section_num) { … … 45 46 { 46 47 text_t element_name = (char*)name; 47 if (element_name == "Sec") {48 if (element_name == section_level) { 48 49 if (store_text == true) { 49 50 // we have finished now, can we quit this?? … … 60 61 } 61 62 } 62 int expat_document(const text_t &filename, const text_t &sec_ num, text_t & doc_content){63 int expat_document(const text_t &filename, const text_t &sec_level, const text_t &sec_num, text_t & doc_content){ 63 64 64 65 current_text.clear(); … … 67 68 68 69 section_num = sec_num; 70 section_level = sec_level; 69 71 text_t doc_text; 70 72 read_file(filename, doc_text); -
trunk/gsdl/src/colservr/expat_document.h
r9173 r9188 4 4 class text_t; 5 5 6 int expat_document(const text_t &filename, const text_t §ion_num, text_t & doc_content); 6 int expat_document(const text_t &filename, const text_t & section_level, 7 const text_t §ion_num, text_t & doc_content); 7 8 8 9 #endif
Note:
See TracChangeset
for help on using the changeset viewer.