mirror of
https://github.com/jakcron/nstool
synced 2024-12-28 08:01:14 +00:00
43 lines
No EOL
1 KiB
C++
43 lines
No EOL
1 KiB
C++
#pragma once
|
|
#include <string>
|
|
|
|
class SdkApiString
|
|
{
|
|
public:
|
|
enum ApiType
|
|
{
|
|
API_MIDDLEWARE,
|
|
API_DEBUG,
|
|
API_PRIVATE,
|
|
API_SDK_VERSION
|
|
};
|
|
|
|
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";
|
|
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);
|
|
}; |