source: trunk/FACT++/src/Description.h@ 10312

Last change on this file since 10312 was 10297, checked in by tbretz, 14 years ago
New struct implementing breaking a descriptive string into name, unit and comment.
File size: 459 bytes
Line 
1#ifndef FACT_Description
2#define FACT_Description
3
4#include <string>
5#include <vector>
6
7struct Description
8{
9 std::string name;
10 std::string unit;
11 std::string comment;
12
13 static std::string Trim(std::string s);
14 static std::vector<Description> SplitDescription(const std::string &buffer);
15
16 Description(const std::string &n, const std::string &u, const std::string &c)
17 : name(Trim(n)), unit(Trim(u)), comment(Trim(c)) { }
18};
19
20#endif
Note: See TracBrowser for help on using the repository browser.