Subversion Repositories gelsvn

Rev

Rev 39 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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);
22
	void parse(const char* str,std::vector<CGLA::Vec2f>& v);
23
	void parse(const char* str,std::vector<CGLA::Vec3f>& v);
24
	void parse(const char* str,std::vector<int>& v);
25
	void parseSMPT(const char* str, float& x);
26
}
27
 
28
#endif // __PARSE_H__