Subversion Repositories gelsvn

Rev

Rev 425 | Rev 595 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
448 jab 1
#ifndef __UTIL_PARSE_H__
2
#define __UTIL_PARSE_H__
39 bj 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__