SCL  1.0
Standard Control Library : Control, dynamics, physics, and simulation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Groups Pages
HelperFunctions.hpp
1 /* This file is free software; you can redistribute it and/or
2 modify it under the terms of the GNU Lesser General Public
3 License as published by the Free Software Foundation; either
4 version 3 of the License, or (at your option) any later version.
5 
6 Alternatively, you can redistribute it and/or
7 modify it under the terms of the GNU General Public License as
8 published by the Free Software Foundation; either version 2 of
9 the License, or (at your option) any later version.
10 
11 This file is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15 
16 You should have received a copy of the GNU Lesser General Public
17 License and a copy of the GNU General Public License along with
18 this file. If not, see <http://www.gnu.org/licenses/>.
19 */
20 /* \file HelperFunctions.hpp
21  *
22  * Created on: Dec 26, 2010
23  *
24  * Copyright (C) 2010, Samir Menon <smenon@stanford.edu>
25  */
26 
27 #ifndef RANDOMFUNCTIONS_HPP_
28 #define RANDOMFUNCTIONS_HPP_
29 
30 #include <string>
31 #include <vector>
32 
39 namespace scl_util
40 {
41  unsigned int countNumbersInString(const char* str);
42 
43  bool isStringInVector(const std::string& arg_str,
44  const std::vector<std::string>& arg_vec);
45 
46  bool getCurrentDir(std::string& arg_cwd);
47 }
48 
49 #endif /* RANDOMFUNCTIONS_HPP_ */