Public Member Functions | |
Settings (BNSettings *settings) | |
virtual | ~Settings () |
void | SetResourceId (const std::string &resourceId="") |
bool | RegisterGroup (const std::string &group, const std::string &title) |
bool | RegisterSetting (const std::string &key, const std::string &properties) |
bool | Contains (const std::string &key) |
bool | IsEmpty () |
std::vector< std::string > | Keys () |
template<typename T > | |
T | QueryProperty (const std::string &key, const std::string &property) |
bool | UpdateProperty (const std::string &key, const std::string &property) |
bool | UpdateProperty (const std::string &key, const std::string &property, bool value) |
bool | UpdateProperty (const std::string &key, const std::string &property, double value) |
bool | UpdateProperty (const std::string &key, const std::string &property, int value) |
bool | UpdateProperty (const std::string &key, const std::string &property, int64_t value) |
bool | UpdateProperty (const std::string &key, const std::string &property, uint64_t value) |
bool | UpdateProperty (const std::string &key, const std::string &property, const char *value) |
bool | UpdateProperty (const std::string &key, const std::string &property, const std::string &value) |
bool | UpdateProperty (const std::string &key, const std::string &property, const std::vector< std::string > &value) |
bool | DeserializeSchema (const std::string &schema, BNSettingsScope scope=SettingsAutoScope, bool merge=true) |
std::string | SerializeSchema () |
bool | DeserializeSettings (const std::string &contents, Ref< BinaryView > view=nullptr, BNSettingsScope scope=SettingsAutoScope) |
std::string | SerializeSettings (Ref< BinaryView > view=nullptr, BNSettingsScope scope=SettingsAutoScope) |
bool | Reset (const std::string &key, Ref< BinaryView > view=nullptr, BNSettingsScope scope=SettingsAutoScope) |
bool | ResetAll (Ref< BinaryView > view=nullptr, BNSettingsScope scope=SettingsAutoScope, bool schemaOnly=true) |
template<typename T > | |
T | Get (const std::string &key, Ref< BinaryView > view=nullptr, BNSettingsScope *scope=nullptr) |
std::string | GetJson (const std::string &key, Ref< BinaryView > view=nullptr, BNSettingsScope *scope=nullptr) |
bool | Set (const std::string &key, bool value, Ref< BinaryView > view=nullptr, BNSettingsScope scope=SettingsAutoScope) |
bool | Set (const std::string &key, double value, Ref< BinaryView > view=nullptr, BNSettingsScope scope=SettingsAutoScope) |
bool | Set (const std::string &key, int value, Ref< BinaryView > view=nullptr, BNSettingsScope scope=SettingsAutoScope) |
bool | Set (const std::string &key, int64_t value, Ref< BinaryView > view=nullptr, BNSettingsScope scope=SettingsAutoScope) |
bool | Set (const std::string &key, uint64_t value, Ref< BinaryView > view=nullptr, BNSettingsScope scope=SettingsAutoScope) |
bool | Set (const std::string &key, const char *value, Ref< BinaryView > view=nullptr, BNSettingsScope scope=SettingsAutoScope) |
bool | Set (const std::string &key, const std::string &value, Ref< BinaryView > view=nullptr, BNSettingsScope scope=SettingsAutoScope) |
bool | Set (const std::string &key, const std::vector< std::string > &value, Ref< BinaryView > view=nullptr, BNSettingsScope scope=SettingsAutoScope) |
bool | SetJson (const std::string &key, const std::string &value, Ref< BinaryView > view=nullptr, BNSettingsScope scope=SettingsAutoScope) |
template<> | |
bool | Get (const std::string &key, Ref< BinaryView > view, BNSettingsScope *scope) |
template<> | |
double | Get (const std::string &key, Ref< BinaryView > view, BNSettingsScope *scope) |
template<> | |
int64_t | Get (const std::string &key, Ref< BinaryView > view, BNSettingsScope *scope) |
template<> | |
uint64_t | Get (const std::string &key, Ref< BinaryView > view, BNSettingsScope *scope) |
template<> | |
vector< string > | QueryProperty (const string &key, const string &property) |
template<> | |
bool | Get (const string &key, Ref< BinaryView > view, BNSettingsScope *scope) |
template<> | |
double | Get (const string &key, Ref< BinaryView > view, BNSettingsScope *scope) |
template<> | |
int64_t | Get (const string &key, Ref< BinaryView > view, BNSettingsScope *scope) |
template<> | |
uint64_t | Get (const string &key, Ref< BinaryView > view, BNSettingsScope *scope) |
template<> | |
string | Get (const string &key, Ref< BinaryView > view, BNSettingsScope *scope) |
template<> | |
vector< string > | Get (const string &key, Ref< BinaryView > view, BNSettingsScope *scope) |
Public Member Functions inherited from BinaryNinja::CoreRefCountObject< BNSettings, BNNewSettingsReference, BNFreeSettings > | |
CoreRefCountObject () | |
virtual | ~CoreRefCountObject () |
BNSettings * | GetObject () const |
void | AddRef () |
void | Release () |
void | AddRefForRegistration () |
void | ReleaseForRegistration () |
Static Public Member Functions | |
static Ref< Settings > | Instance (const std::string &schemaId="") |
Static Public Member Functions inherited from BinaryNinja::CoreRefCountObject< BNSettings, BNNewSettingsReference, BNFreeSettings > | |
static BNSettings * | GetObject (CoreRefCountObject *obj) |
Additional Inherited Members | |
Public Attributes inherited from BinaryNinja::CoreRefCountObject< BNSettings, BNNewSettingsReference, BNFreeSettings > | |
std::atomic< int > | m_refs |
bool | m_registeredRef |
BNSettings * | m_object |
Settings::Settings | ( | BNSettings * | settings | ) |
|
inlinevirtual |
bool Settings::Contains | ( | const std::string & | key | ) |
bool Settings::DeserializeSchema | ( | const std::string & | schema, |
BNSettingsScope | scope = SettingsAutoScope , |
||
bool | merge = true |
||
) |
bool Settings::DeserializeSettings | ( | const std::string & | contents, |
Ref< BinaryView > | view = nullptr , |
||
BNSettingsScope | scope = SettingsAutoScope |
||
) |
bool BinaryNinja::Settings::Get | ( | const std::string & | key, |
Ref< BinaryView > | view, | ||
BNSettingsScope * | scope | ||
) |
double BinaryNinja::Settings::Get | ( | const std::string & | key, |
Ref< BinaryView > | view, | ||
BNSettingsScope * | scope | ||
) |
int64_t BinaryNinja::Settings::Get | ( | const std::string & | key, |
Ref< BinaryView > | view, | ||
BNSettingsScope * | scope | ||
) |
uint64_t BinaryNinja::Settings::Get | ( | const std::string & | key, |
Ref< BinaryView > | view, | ||
BNSettingsScope * | scope | ||
) |
T BinaryNinja::Settings::Get | ( | const std::string & | key, |
Ref< BinaryView > | view = nullptr , |
||
BNSettingsScope * | scope = nullptr |
||
) |
bool BinaryNinja::Settings::Get | ( | const string & | key, |
Ref< BinaryView > | view, | ||
BNSettingsScope * | scope | ||
) |
double BinaryNinja::Settings::Get | ( | const string & | key, |
Ref< BinaryView > | view, | ||
BNSettingsScope * | scope | ||
) |
int64_t BinaryNinja::Settings::Get | ( | const string & | key, |
Ref< BinaryView > | view, | ||
BNSettingsScope * | scope | ||
) |
uint64_t BinaryNinja::Settings::Get | ( | const string & | key, |
Ref< BinaryView > | view, | ||
BNSettingsScope * | scope | ||
) |
vector< string > BinaryNinja::Settings::Get | ( | const string & | key, |
Ref< BinaryView > | view, | ||
BNSettingsScope * | scope | ||
) |
string BinaryNinja::Settings::Get | ( | const string & | key, |
Ref< BinaryView > | view, | ||
BNSettingsScope * | scope | ||
) |
string Settings::GetJson | ( | const std::string & | key, |
Ref< BinaryView > | view = nullptr , |
||
BNSettingsScope * | scope = nullptr |
||
) |
bool Settings::IsEmpty | ( | ) |
vector< string > Settings::Keys | ( | ) |
T BinaryNinja::Settings::QueryProperty | ( | const std::string & | key, |
const std::string & | property | ||
) |
vector< string > BinaryNinja::Settings::QueryProperty | ( | const string & | key, |
const string & | property | ||
) |
bool Settings::RegisterGroup | ( | const std::string & | group, |
const std::string & | title | ||
) |
bool Settings::RegisterSetting | ( | const std::string & | key, |
const std::string & | properties | ||
) |
bool Settings::Reset | ( | const std::string & | key, |
Ref< BinaryView > | view = nullptr , |
||
BNSettingsScope | scope = SettingsAutoScope |
||
) |
bool Settings::ResetAll | ( | Ref< BinaryView > | view = nullptr , |
BNSettingsScope | scope = SettingsAutoScope , |
||
bool | schemaOnly = true |
||
) |
string Settings::SerializeSchema | ( | ) |
string Settings::SerializeSettings | ( | Ref< BinaryView > | view = nullptr , |
BNSettingsScope | scope = SettingsAutoScope |
||
) |
bool BinaryNinja::Settings::Set | ( | const std::string & | key, |
bool | value, | ||
Ref< BinaryView > | view = nullptr , |
||
BNSettingsScope | scope = SettingsAutoScope |
||
) |
bool BinaryNinja::Settings::Set | ( | const std::string & | key, |
const char * | value, | ||
Ref< BinaryView > | view = nullptr , |
||
BNSettingsScope | scope = SettingsAutoScope |
||
) |
bool BinaryNinja::Settings::Set | ( | const std::string & | key, |
const std::string & | value, | ||
Ref< BinaryView > | view = nullptr , |
||
BNSettingsScope | scope = SettingsAutoScope |
||
) |
bool BinaryNinja::Settings::Set | ( | const std::string & | key, |
const std::vector< std::string > & | value, | ||
Ref< BinaryView > | view = nullptr , |
||
BNSettingsScope | scope = SettingsAutoScope |
||
) |
bool BinaryNinja::Settings::Set | ( | const std::string & | key, |
double | value, | ||
Ref< BinaryView > | view = nullptr , |
||
BNSettingsScope | scope = SettingsAutoScope |
||
) |
bool BinaryNinja::Settings::Set | ( | const std::string & | key, |
int | value, | ||
Ref< BinaryView > | view = nullptr , |
||
BNSettingsScope | scope = SettingsAutoScope |
||
) |
bool BinaryNinja::Settings::Set | ( | const std::string & | key, |
int64_t | value, | ||
Ref< BinaryView > | view = nullptr , |
||
BNSettingsScope | scope = SettingsAutoScope |
||
) |
bool BinaryNinja::Settings::Set | ( | const std::string & | key, |
uint64_t | value, | ||
Ref< BinaryView > | view = nullptr , |
||
BNSettingsScope | scope = SettingsAutoScope |
||
) |
bool Settings::SetJson | ( | const std::string & | key, |
const std::string & | value, | ||
Ref< BinaryView > | view = nullptr , |
||
BNSettingsScope | scope = SettingsAutoScope |
||
) |
void Settings::SetResourceId | ( | const std::string & | resourceId = "" | ) |
bool Settings::UpdateProperty | ( | const std::string & | key, |
const std::string & | property | ||
) |
bool Settings::UpdateProperty | ( | const std::string & | key, |
const std::string & | property, | ||
bool | value | ||
) |
bool Settings::UpdateProperty | ( | const std::string & | key, |
const std::string & | property, | ||
const char * | value | ||
) |
bool Settings::UpdateProperty | ( | const std::string & | key, |
const std::string & | property, | ||
const std::string & | value | ||
) |
bool Settings::UpdateProperty | ( | const std::string & | key, |
const std::string & | property, | ||
const std::vector< std::string > & | value | ||
) |
bool Settings::UpdateProperty | ( | const std::string & | key, |
const std::string & | property, | ||
double | value | ||
) |
bool Settings::UpdateProperty | ( | const std::string & | key, |
const std::string & | property, | ||
int | value | ||
) |
bool Settings::UpdateProperty | ( | const std::string & | key, |
const std::string & | property, | ||
int64_t | value | ||
) |
bool Settings::UpdateProperty | ( | const std::string & | key, |
const std::string & | property, | ||
uint64_t | value | ||
) |