39 |
bj |
1 |
#ifndef __PARSE_H__
|
|
|
2 |
#define __PARSE_H__
|
|
|
3 |
|
|
|
4 |
#include <string>
|
|
|
5 |
#include <sstream>
|
|
|
6 |
#include <vector>
|
|
|
7 |
#include <CGLA/Vec4f.h>
|
|
|
8 |
#include <CGLA/Vec3f.h>
|
|
|
9 |
#include <CGLA/Vec2f.h>
|
|
|
10 |
|
|
|
11 |
namespace Util {
|
|
|
12 |
std::string floatToString(float value);
|
|
|
13 |
void parse(const char* str,bool& x);
|
|
|
14 |
void parse(const char* str,std::string& x);
|
|
|
15 |
void parse(const char* str,int& x);
|
|
|
16 |
void parse(const char* str,CGLA::Vec2i&);
|
|
|
17 |
void parse(const char* str,float& x);
|
|
|
18 |
void parse(const char* str,CGLA::Vec2f&);
|
|
|
19 |
void parse(const char* str,CGLA::Vec3f& vec);
|
|
|
20 |
void parse(const char* str,CGLA::Vec4f&);
|
|
|
21 |
void parse(const char* str,std::vector<float>& v);
|
425 |
jrf |
22 |
void parse(const char* str,std::vector<double>& v);
|
39 |
bj |
23 |
void parse(const char* str,std::vector<CGLA::Vec2f>& v);
|
|
|
24 |
void parse(const char* str,std::vector<CGLA::Vec3f>& v);
|
|
|
25 |
void parse(const char* str,std::vector<int>& v);
|
|
|
26 |
void parseSMPT(const char* str, float& x);
|
|
|
27 |
}
|
|
|
28 |
|
|
|
29 |
#endif // __PARSE_H__
|