| 1 |
|
| 2 |
#ifndef header_main |
| 3 |
#define header_main |
| 4 |
|
| 5 |
#include <ClanLib/core.h> |
| 6 |
#include <ClanLib/application.h> |
| 7 |
#include <stdlib.h> |
| 8 |
|
| 9 |
class RefClass |
| 10 |
{ |
| 11 |
public: |
| 12 |
std::string className; |
| 13 |
std::string groupName; |
| 14 |
std::string subGroupName; |
| 15 |
std::string groupString; // the String groupName/subGroupName |
| 16 |
|
| 17 |
std::vector<std::string> sections; |
| 18 |
|
| 19 |
void setGroupName(const std::string &group_string); |
| 20 |
|
| 21 |
RefClass(const std::string &class_name,const std::string &group_string); |
| 22 |
|
| 23 |
~RefClass(); |
| 24 |
}; |
| 25 |
|
| 26 |
bool groupsort(RefClass &u1,RefClass &u2); |
| 27 |
bool indexsort(RefClass &u1,RefClass &u2); |
| 28 |
|
| 29 |
class ReferenceDocs : public CL_ClanApplication |
| 30 |
{ |
| 31 |
public: |
| 32 |
virtual int main(int argc, char **argv); |
| 33 |
|
| 34 |
private: |
| 35 |
void parse_compounddef(CL_DomElement compounddef); |
| 36 |
|
| 37 |
std::string parse_sectiondef(const std::string &class_name, CL_DomElement sectiondef); |
| 38 |
|
| 39 |
std::string parse_memberdef(const std::string &class_name, const std::string §ion_name, std::map<std::string, int> &member_map, CL_DomElement memberdef); |
| 40 |
|
| 41 |
void parse_groupedclasses(); |
| 42 |
|
| 43 |
void parse_allclasses(); |
| 44 |
|
| 45 |
void parse_indexedclasses(); |
| 46 |
|
| 47 |
std::string ReferenceDocs::get_params_list(const CL_DomElement &element); |
| 48 |
|
| 49 |
std::string get_formatted(const CL_DomElement &element); |
| 50 |
|
| 51 |
void on_log_message(const std::string &channel, int level, const std::string &text); |
| 52 |
|
| 53 |
CL_SlotContainer slots; |
| 54 |
|
| 55 |
std::list<RefClass> rlist; |
| 56 |
}; |
| 57 |
|
| 58 |
#endif |