File: main.h

package info (click to toggle)
clanlib 1.0~svn3827-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 24,696 kB
  • sloc: cpp: 101,591; xml: 6,410; makefile: 1,742; ansic: 463; perl: 424; php: 247; sh: 53
file content (58 lines) | stat: -rw-r--r-- 1,347 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58

#ifndef header_main
#define header_main

#include <ClanLib/core.h>
#include <ClanLib/application.h>
#include <stdlib.h>

class RefClass
{
public:
	std::string className;
	std::string groupName;
	std::string subGroupName;
	std::string groupString; // the String groupName/subGroupName

	std::vector<std::string> sections;

	void setGroupName(const std::string &group_string);

	RefClass(const std::string &class_name,const std::string &group_string);

	~RefClass();
};

bool groupsort(RefClass &u1,RefClass &u2);
bool indexsort(RefClass &u1,RefClass &u2);

class ReferenceDocs : public CL_ClanApplication
{
public:
	virtual int main(int argc, char **argv);

private:
	void parse_compounddef(CL_DomElement compounddef);

	std::string parse_sectiondef(const std::string &class_name, CL_DomElement sectiondef);

	std::string parse_memberdef(const std::string &class_name, const std::string &section_name, std::map<std::string, int> &member_map, CL_DomElement memberdef);

	void parse_groupedclasses();

	void parse_allclasses();

	void parse_indexedclasses();

	std::string ReferenceDocs::get_params_list(const CL_DomElement &element);

	std::string get_formatted(const CL_DomElement &element);
	
	void on_log_message(const std::string &channel, int level, const std::string &text);
	
	CL_SlotContainer slots;

	std::list<RefClass> rlist;
};

#endif