SCV
4.2.1
Simple Components for Visual
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
util.h
Go to the documentation of this file.
1
#ifndef __SCV_UTIL_H__
2
#define __SCV_UTIL_H__
3
4
namespace
scv {
5
6
template
<
class
T>
7
std::string
toString
(T rhs) {
8
std::stringstream stream;
9
stream << rhs;
10
return
stream.str();
11
}
12
13
template
<
class
T>
14
T
fromString
(
const
std::string &str) {
15
std::istringstream stream (str);
16
T classType;
17
stream >> classType;
18
return
classType;
19
}
20
21
std::string
trim
(
const
std::string &str);
22
23
}
// namespace scv
24
25
#endif // __SCV_UTIL_H__
include
SCV
util.h
Generated on Fri Dec 14 2012 09:44:49 for SCV by
1.8.2