nstool/src/SdkApiString.h

49 lines
1.1 KiB
C
Raw Normal View History

2018-06-09 15:31:52 +00:00
#pragma once
#include "types.h"
namespace nstool {
2018-06-09 15:31:52 +00:00
class SdkApiString
{
public:
enum ApiType
{
API_MIDDLEWARE,
API_DEBUG,
API_PRIVATE,
2020-05-23 08:03:27 +00:00
API_SDK_VERSION,
API_GUIDELINE,
2018-06-09 15:31:52 +00:00
};
SdkApiString(const std::string& full_str);
SdkApiString(ApiType type, const std::string& vender_name, const std::string& module_name);
void operator=(const SdkApiString& other);
ApiType getApiType() const;
void setApiType(ApiType type);
const std::string& getVenderName() const;
void setVenderName(const std::string& name);
const std::string& getModuleName() const;
void setModuleName(const std::string& name);
private:
const std::string kModuleName = "SdkApiString";
const char kSplitChar = '+';
const std::string kSdkMiddleWareApiString = "SDK MW";
const std::string kSdkDebugApiString = "SDK Debug";
const std::string kSdkPrivateApiString = "SDK Private";
2020-05-23 08:03:27 +00:00
const std::string kSdkGuidelineApiString = "SDK Guideline";
2018-06-09 15:31:52 +00:00
const std::string kVenderNintendo = "Nintendo";
const std::string kSdkVersionString = "NintendoSdk_nnSdk-";
ApiType mApiType;
std::string mVenderName;
std::string mModuleName;
void resolveApiString(const std::string& full_str);
};
}