Fix up build and start site generator.
This commit is contained in:
parent
d471609712
commit
bd60a28eef
15 changed files with 267 additions and 96 deletions
|
@ -7,22 +7,22 @@ CommandLineArgs::CommandLineArgs()
|
|||
|
||||
}
|
||||
|
||||
std::unique_ptr<CommandLineArgs> CommandLineArgs::CreateUnique()
|
||||
std::unique_ptr<CommandLineArgs> CommandLineArgs::Create()
|
||||
{
|
||||
return std::make_unique<CommandLineArgs>();
|
||||
}
|
||||
|
||||
std::filesystem::path CommandLineArgs::GetLaunchPath()
|
||||
std::filesystem::path CommandLineArgs::getLaunchPath()
|
||||
{
|
||||
return mLaunchPath;
|
||||
}
|
||||
|
||||
void CommandLineArgs::RecordLaunchPath()
|
||||
void CommandLineArgs::recordLaunchPath()
|
||||
{
|
||||
mLaunchPath = std::filesystem::current_path();
|
||||
}
|
||||
|
||||
void CommandLineArgs::Process(int argc, char *argv[])
|
||||
void CommandLineArgs::process(int argc, char *argv[])
|
||||
{
|
||||
for(int idx=0; idx<argc; idx++)
|
||||
{
|
||||
|
@ -30,17 +30,17 @@ void CommandLineArgs::Process(int argc, char *argv[])
|
|||
}
|
||||
}
|
||||
|
||||
void CommandLineArgs::Process(const std::vector<std::string>& args)
|
||||
void CommandLineArgs::process(const std::vector<std::string>& args)
|
||||
{
|
||||
mArugments = args;
|
||||
}
|
||||
|
||||
std::size_t CommandLineArgs::GetNumberOfArgs() const
|
||||
std::size_t CommandLineArgs::getNumberOfArgs() const
|
||||
{
|
||||
return mArugments.size();
|
||||
}
|
||||
|
||||
std::string CommandLineArgs::GetArg(std::size_t index) const
|
||||
std::string CommandLineArgs::getArg(std::size_t index) const
|
||||
{
|
||||
if(index<mArugments.size())
|
||||
{
|
||||
|
|
|
@ -6,26 +6,27 @@
|
|||
|
||||
class CommandLineArgs
|
||||
{
|
||||
std::vector<std::string> mArugments;
|
||||
std::filesystem::path mLaunchPath;
|
||||
|
||||
public:
|
||||
|
||||
CommandLineArgs();
|
||||
|
||||
static std::unique_ptr<CommandLineArgs> CreateUnique();
|
||||
static std::unique_ptr<CommandLineArgs> Create();
|
||||
|
||||
void RecordLaunchPath();
|
||||
std::filesystem::path getLaunchPath();
|
||||
|
||||
std::filesystem::path GetLaunchPath();
|
||||
std::size_t getNumberOfArgs() const;
|
||||
|
||||
void Process(int argc, char *argv[]);
|
||||
std::string getArg(std::size_t index) const;
|
||||
|
||||
void Process(const std::vector<std::string>& args);
|
||||
void process(int argc, char *argv[]);
|
||||
|
||||
std::size_t GetNumberOfArgs() const;
|
||||
void process(const std::vector<std::string>& args);
|
||||
|
||||
std::string GetArg(std::size_t index) const;
|
||||
void recordLaunchPath();
|
||||
|
||||
private:
|
||||
std::vector<std::string> mArugments;
|
||||
std::filesystem::path mLaunchPath;
|
||||
};
|
||||
|
||||
using CommandLineArgsUPtr = std::unique_ptr<CommandLineArgs>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue