netxsimdg
Loading...
Searching...
No Matches
ArgV.hpp
Go to the documentation of this file.
1
8#include <string>
9#include <vector>
10
11#ifndef TEST_ARGV_HPP
12#define TEST_ARGV_HPP
13
14namespace Nextsim {
15// A class to work around the limitations on casting string literals to char*.
16class ArgV {
17public:
18 ArgV(std::vector<std::string> vs);
19 ~ArgV();
20
21 char** operator()();
22 int argc();
23
24private:
25 int nStrings;
26 char** ppc;
27};
28
29}
30
31#endif /* TEST_ARGV_HPP */