Source-highlight Library
|
00001 00011 #ifndef _DOCTEMPLATE_H_ 00012 #define _DOCTEMPLATE_H_ 00013 00014 #include <string> 00015 00016 namespace srchilite { 00017 00018 class DocTemplate { 00019 std::string begin_repr, end_repr; 00020 public: 00021 DocTemplate(const std::string &begin = "", const std::string &end = ""); 00022 00023 std::string output_begin(const std::string &title, const std::string &cs, 00024 const std::string &add, const std::string &header, 00025 const std::string &footer, const std::string &background, 00026 const std::string &input_lang); 00027 std::string output_end(const std::string &title, const std::string &cs, 00028 const std::string &add, const std::string &header, 00029 const std::string &footer, const std::string &background, 00030 const std::string &input_lang); 00031 00032 const std::string &toStringBegin() const { 00033 return begin_repr; 00034 } 00035 const std::string &toStringEnd() const { 00036 return end_repr; 00037 } 00038 }; 00039 00040 } 00041 00042 #endif /*_DOCTEMPLATE_H_*/