PowerPointRTC  0.5.0
 全て クラス ファイル 関数 変数
SubFunction.h
説明を見る。
1 // -*-C++-*-
6 #ifndef SubFunction_H
7 #define SubFunction_H
8 
9 #include <vector>
10 #include <string>
11 #include <sstream>
12 
13 
14 
20 int convertStrToVal(std::string m_str);
21 
22 
23 
31 std::string Replace( std::string String1, std::string String2, std::string String3 );
32 
33 
34 
40 {
41 public:
46  TreeObject(std::string n)
47  {
48  name = n;
49  };
50  std::string name;
51  std::vector<TreeObject*> to;
52 };
53 
54 
60 std::string MarshalString ( System::String ^ s);
61 
62 
69 std::vector<std::string> split(const std::string &str, const std::string &delim);
70 
71 
78 template<typename T>
79 T string2binary(const std::string& text, int base) {
80 
81  std::istringstream is(text);
82  T value;
83  switch (base) {
84  case 8:
85  is >> std::oct >> value;
86  break;
87  case 10:
88  is >> value;
89  break;
90  case 16:
91  is >> std::hex >> value;
92  break;
93  default:
94  ;
95  }
96 
97  return value;
98 }
99 
100 #endif