Ylva And Malin
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
meta_generator
src
meta.h
Go to the documentation of this file.
1
#pragma once
2
#include <string>
3
#include <utility>
4
#include <vector>
5
6
namespace
meta
7
{
8
struct
type_info
9
{
10
enum
data_type
11
{
12
enumeration
,
13
structure
,
14
};
15
16
struct
key_value
17
{
18
std::string
key
;
19
std::string
value
;
20
};
21
22
data_type
type
;
23
std::string
name
;
24
std::vector<key_value>
values
;
25
};
26
27
struct
file
28
{
29
std::string
filename
;
30
std::string
contents
;
31
};
32
33
// Return a pair of .h and .cpp file?
34
std::pair<file, file>
35
parse
(
const
char
* filename,
36
const
char
*
string
);
37
38
const
char
*
39
tokenize_enum
(
const
char
*
string
,
40
type_info
& info);
41
42
std::pair<std::string, std::string>
43
generate_enum_to_string
(
const
type_info
& e);
44
}
meta::type_info::name
std::string name
Definition:
meta.h:23
meta::type_info::key_value
Definition:
meta.h:16
meta::generate_enum_to_string
std::pair< std::string, std::string > generate_enum_to_string(const type_info &e)
Definition:
meta.cpp:131
meta::type_info::structure
Definition:
meta.h:13
meta::parse
std::pair< file, file > parse(const char *filename, const char *string)
Definition:
meta.cpp:32
meta::file::contents
std::string contents
Definition:
meta.h:30
meta::file::filename
std::string filename
Definition:
meta.h:29
meta::type_info
Definition:
meta.h:8
meta::type_info::values
std::vector< key_value > values
Definition:
meta.h:24
meta
Definition:
meta.h:6
meta::file
Definition:
meta.h:27
meta::type_info::key_value::key
std::string key
Definition:
meta.h:18
meta::type_info::data_type
data_type
Definition:
meta.h:10
meta::tokenize_enum
const char * tokenize_enum(const char *string, type_info &info)
Definition:
meta.cpp:88
meta::type_info::type
data_type type
Definition:
meta.h:22
meta::type_info::key_value::value
std::string value
Definition:
meta.h:19
meta::type_info::enumeration
Definition:
meta.h:12
Generated by
1.8.11