The Battle for Wesnoth  1.15.9+dev
commandline_argv.hpp
Go to the documentation of this file.
1 /*
2  Part of the Battle for Wesnoth Project https://www.wesnoth.org/
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY.
10 
11  See the COPYING file for more details.
12 */
13 
14 #pragma once
15 
16 #include <string>
17 #include <vector>
18 
19 /**
20  * Reads argv into a vector of STL strings.
21  *
22  * @note Both parameters are ignored on Windows in order to obtain guaranteed
23  * Unicode-safe versions through the Win32 API. Do NOT try to pass values
24  * other than the ones you got from main() here.
25  */
26 std::vector<std::string> read_argv(int argc, char** argv);
std::vector< std::string > read_argv(int argc, char **argv)
Reads argv into a vector of STL strings.