Continuing work on the CLI functionality. Able to strip the command line actions, and flags with their values #7
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#ifndef FLAGS_H_
|
||||
#define FLAGS_H_
|
||||
|
||||
#include<string>
|
||||
|
||||
namespace Models
|
||||
{
|
||||
struct Flags
|
||||
{
|
||||
std::string flag;
|
||||
std::string value;
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,18 @@
|
||||
#ifndef ICARUSACTION_H_
|
||||
#define ICARUSACTION_H_
|
||||
|
||||
#include<string>
|
||||
#include<vector>
|
||||
|
||||
#include"Flags.h"
|
||||
|
||||
namespace Models
|
||||
{
|
||||
struct IcarusAction
|
||||
{
|
||||
std::string action;
|
||||
std::vector<Flags> flags;
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -16,6 +16,7 @@ namespace Models
|
||||
int year;
|
||||
int duration;
|
||||
char* songData;
|
||||
std::string songPath;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
#ifndef TOKEN_H_
|
||||
#define TOKEN_H_
|
||||
|
||||
#include<string>
|
||||
|
||||
namespace Models
|
||||
{
|
||||
struct Token
|
||||
{
|
||||
std::string accessToken;
|
||||
std::string tokenType;
|
||||
int expiration;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,15 @@
|
||||
#ifndef USER_H_
|
||||
#define USER_H_
|
||||
|
||||
#include<string>
|
||||
|
||||
namespace Models
|
||||
{
|
||||
struct User
|
||||
{
|
||||
std::string username;
|
||||
std::string password;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user