68c144f Add ls to file system 1ce2797 Flatten out namespaces to only ox e0063a7 Cleanup oxfstool format output a2dfb41 Fix FS read by type to read byte by byte git-subtree-dir: deps/ox git-subtree-split: 68c144fe755e1f1a6cebb841b6c37b618a35fa43
33 lines
650 B
C++
33 lines
650 B
C++
/*
|
|
* Copyright 2015 - 2017 gtalent2@gmail.com
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <map>
|
|
#include <string>
|
|
|
|
namespace ox {
|
|
|
|
class ClArgs {
|
|
private:
|
|
::std::map<::std::string, bool> m_bools;
|
|
::std::map<::std::string, ::std::string> m_strings;
|
|
::std::map<::std::string, int> m_ints;
|
|
|
|
public:
|
|
ClArgs(int argc, const char **args);
|
|
|
|
bool getBool(const char *arg);
|
|
|
|
::std::string getString(const char *arg);
|
|
|
|
int getInt(const char *arg);
|
|
};
|
|
|
|
}
|