mirror of
https://github.com/lucaspalomodevelop/lpstd.git
synced 2026-03-12 23:27:22 +00:00
fix namespace
This commit is contained in:
parent
179f7b4107
commit
fc4a4dbf46
@ -10,18 +10,23 @@
|
||||
#include <iterator>
|
||||
#include "../patterns/singleton.hpp"
|
||||
|
||||
struct commandInfo
|
||||
namespace lpstd
|
||||
{
|
||||
namespace classes
|
||||
{
|
||||
|
||||
struct commandInfo
|
||||
{
|
||||
std::string name;
|
||||
std::string description;
|
||||
void (*func)();
|
||||
std::vector<std::string> args;
|
||||
};
|
||||
};
|
||||
|
||||
class Command : public lpstd::Singleton<Command>
|
||||
{
|
||||
class Command : public lpstd::Singleton<Command>
|
||||
{
|
||||
|
||||
private:
|
||||
private:
|
||||
std::list<commandInfo> commands = {};
|
||||
std::string defaultCommandName = "help";
|
||||
|
||||
@ -29,7 +34,7 @@ private:
|
||||
description : "",
|
||||
func : nullptr};
|
||||
|
||||
public:
|
||||
public:
|
||||
Command(/* args */)
|
||||
{
|
||||
}
|
||||
@ -170,6 +175,9 @@ public:
|
||||
}
|
||||
std::cout << "Command not found" << std::endl;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
} // namespace classes
|
||||
} // namespace lpstd
|
||||
|
||||
#endif // __LPSTD_COMMAND_H__
|
||||
Loading…
x
Reference in New Issue
Block a user