Initial test bootstrap.
This commit is contained in:
parent
6c618749f1
commit
4b308f6c32
94 changed files with 2543 additions and 681 deletions
|
@ -34,37 +34,37 @@ void CommandLineArgs::initialize(CommandLineArgs* args)
|
|||
#endif
|
||||
}
|
||||
|
||||
std::unique_ptr<CommandLineArgs> CommandLineArgs::Create()
|
||||
Ptr<CommandLineArgs> CommandLineArgs::Create()
|
||||
{
|
||||
return std::make_unique<CommandLineArgs>();
|
||||
return Ptr<CommandLineArgs>::create();
|
||||
}
|
||||
|
||||
std::filesystem::path CommandLineArgs::getLaunchPath()
|
||||
FileSystemPath CommandLineArgs::getLaunchPath()
|
||||
{
|
||||
return mLaunchPath;
|
||||
}
|
||||
|
||||
void CommandLineArgs::recordLaunchPath()
|
||||
{
|
||||
mLaunchPath = std::filesystem::current_path();
|
||||
mLaunchPath = FileSystemPath::current_dir();
|
||||
}
|
||||
|
||||
void CommandLineArgs::process(int argc, char *argv[])
|
||||
{
|
||||
for(int idx=0; idx<argc; idx++)
|
||||
{
|
||||
mArugments.push_back(std::string(argv[idx]));
|
||||
mArugments.push_back(String(argv[idx]));
|
||||
}
|
||||
}
|
||||
|
||||
void CommandLineArgs::process(const std::vector<std::string>& args)
|
||||
void CommandLineArgs::process(const Vector<String>& args)
|
||||
{
|
||||
mArugments = args;
|
||||
}
|
||||
|
||||
std::vector<std::string> CommandLineArgs::getUserArgs() const
|
||||
Vector<String> CommandLineArgs::getUserArgs() const
|
||||
{
|
||||
std::vector<std::string> user_args;
|
||||
Vector<String> user_args;
|
||||
for(unsigned idx=1; idx<mArugments.size(); idx++)
|
||||
{
|
||||
user_args.push_back(mArugments[idx]);
|
||||
|
@ -72,7 +72,7 @@ std::vector<std::string> CommandLineArgs::getUserArgs() const
|
|||
return user_args;
|
||||
}
|
||||
|
||||
const std::vector<std::string> CommandLineArgs::getArgs() const
|
||||
const Vector<String> CommandLineArgs::getArgs() const
|
||||
{
|
||||
return mArugments;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue