Public Member Functions | |
Project (BNProject *project) | |
bool | Open () |
bool | Close () |
std::string | GetId () const |
bool | IsOpen () const |
std::string | GetPath () const |
std::string | GetName () const |
void | SetName (const std::string &name) |
std::string | GetDescription () const |
void | SetDescription (const std::string &description) |
Ref< Metadata > | QueryMetadata (const std::string &key) |
bool | StoreMetadata (const std::string &key, Ref< Metadata > value) |
void | RemoveMetadata (const std::string &key) |
Ref< ProjectFolder > | CreateFolderFromPath (const std::string &path, Ref< ProjectFolder > parent, const std::string &description, const std::function< bool(size_t progress, size_t total)> &progressCallback={}) |
Ref< ProjectFolder > | CreateFolder (Ref< ProjectFolder > parent, const std::string &name, const std::string &description) |
Ref< ProjectFolder > | CreateFolderUnsafe (Ref< ProjectFolder > parent, const std::string &name, const std::string &description, const std::string &id) |
std::vector< Ref< ProjectFolder > > | GetFolders () const |
Ref< ProjectFolder > | GetFolderById (const std::string &id) const |
void | PushFolder (Ref< ProjectFolder > folder) |
bool | DeleteFolder (Ref< ProjectFolder > folder, const std::function< bool(size_t progress, size_t total)> &progressCallback={}) |
Ref< ProjectFile > | CreateFileFromPath (const std::string &path, Ref< ProjectFolder > folder, const std::string &name, const std::string &description, const std::function< bool(size_t progress, size_t total)> &progressCallback={}) |
Ref< ProjectFile > | CreateFileFromPathUnsafe (const std::string &path, Ref< ProjectFolder > folder, const std::string &name, const std::string &description, const std::string &id, int64_t creationTimestamp, const std::function< bool(size_t progress, size_t total)> &progressCallback={}) |
Ref< ProjectFile > | CreateFile_ (const std::vector< uint8_t > &contents, Ref< ProjectFolder > folder, const std::string &name, const std::string &description, const std::function< bool(size_t progress, size_t total)> &progressCallback={}) |
Ref< ProjectFile > | CreateFileUnsafe (const std::vector< uint8_t > &contents, Ref< ProjectFolder > folder, const std::string &name, const std::string &description, const std::string &id, int64_t creationTimestamp, const std::function< bool(size_t progress, size_t total)> &progressCallback={}) |
std::vector< Ref< ProjectFile > > | GetFiles () const |
Ref< ProjectFile > | GetFileById (const std::string &id) const |
Ref< ProjectFile > | GetFileByPathOnDisk (const std::string &path) |
void | PushFile (Ref< ProjectFile > file) |
bool | DeleteFile_ (Ref< ProjectFile > file) |
void | RegisterNotification (ProjectNotification *notify) |
void | UnregisterNotification (ProjectNotification *notify) |
void | BeginBulkOperation () |
void | EndBulkOperation () |
Public Member Functions inherited from BinaryNinja::CoreRefCountObject< BNProject, BNNewProjectReference, BNFreeProject > | |
CoreRefCountObject () | |
virtual | ~CoreRefCountObject () |
BNProject * | GetObject () const |
void | AddRef () |
void | Release () |
void | AddRefForRegistration () |
void | ReleaseForRegistration () |
void | AddRefForCallback () |
void | ReleaseForCallback () |
Static Public Member Functions | |
static Ref< Project > | CreateProject (const std::string &path, const std::string &name) |
static Ref< Project > | OpenProject (const std::string &path) |
static std::vector< Ref< Project > > | GetOpenProjects () |
Static Public Member Functions inherited from BinaryNinja::CoreRefCountObject< BNProject, BNNewProjectReference, BNFreeProject > | |
static BNProject * | GetObject (CoreRefCountObject *obj) |
static BNProject * | GetObject (const CoreRefCountObject *obj) |
Additional Inherited Members | |
Public Attributes inherited from BinaryNinja::CoreRefCountObject< BNProject, BNNewProjectReference, BNFreeProject > | |
std::atomic< int > | m_refs |
bool | m_registeredRef |
BNProject * | m_object |
Project::Project | ( | BNProject * | project | ) |
bool Project::Open | ( | ) |
bool Project::Close | ( | ) |
std::string Project::GetId | ( | ) | const |
bool Project::IsOpen | ( | ) | const |
std::string Project::GetPath | ( | ) | const |
std::string Project::GetName | ( | ) | const |
void Project::SetName | ( | const std::string & | name | ) |
std::string Project::GetDescription | ( | ) | const |
void Project::SetDescription | ( | const std::string & | description | ) |
void Project::RemoveMetadata | ( | const std::string & | key | ) |
Ref< ProjectFolder > Project::CreateFolderFromPath | ( | const std::string & | path, |
Ref< ProjectFolder > | parent, | ||
const std::string & | description, | ||
const std::function< bool(size_t progress, size_t total)> & | progressCallback = {} ) |
Ref< ProjectFolder > Project::CreateFolder | ( | Ref< ProjectFolder > | parent, |
const std::string & | name, | ||
const std::string & | description ) |
Ref< ProjectFolder > Project::CreateFolderUnsafe | ( | Ref< ProjectFolder > | parent, |
const std::string & | name, | ||
const std::string & | description, | ||
const std::string & | id ) |
std::vector< Ref< ProjectFolder > > Project::GetFolders | ( | ) | const |
Ref< ProjectFolder > Project::GetFolderById | ( | const std::string & | id | ) | const |
void Project::PushFolder | ( | Ref< ProjectFolder > | folder | ) |
bool Project::DeleteFolder | ( | Ref< ProjectFolder > | folder, |
const std::function< bool(size_t progress, size_t total)> & | progressCallback = {} ) |
Ref< ProjectFile > Project::CreateFileFromPath | ( | const std::string & | path, |
Ref< ProjectFolder > | folder, | ||
const std::string & | name, | ||
const std::string & | description, | ||
const std::function< bool(size_t progress, size_t total)> & | progressCallback = {} ) |
Ref< ProjectFile > Project::CreateFileFromPathUnsafe | ( | const std::string & | path, |
Ref< ProjectFolder > | folder, | ||
const std::string & | name, | ||
const std::string & | description, | ||
const std::string & | id, | ||
int64_t | creationTimestamp, | ||
const std::function< bool(size_t progress, size_t total)> & | progressCallback = {} ) |
Ref< ProjectFile > Project::CreateFile_ | ( | const std::vector< uint8_t > & | contents, |
Ref< ProjectFolder > | folder, | ||
const std::string & | name, | ||
const std::string & | description, | ||
const std::function< bool(size_t progress, size_t total)> & | progressCallback = {} ) |
Ref< ProjectFile > Project::CreateFileUnsafe | ( | const std::vector< uint8_t > & | contents, |
Ref< ProjectFolder > | folder, | ||
const std::string & | name, | ||
const std::string & | description, | ||
const std::string & | id, | ||
int64_t | creationTimestamp, | ||
const std::function< bool(size_t progress, size_t total)> & | progressCallback = {} ) |
std::vector< Ref< ProjectFile > > Project::GetFiles | ( | ) | const |
Ref< ProjectFile > Project::GetFileById | ( | const std::string & | id | ) | const |
Ref< ProjectFile > Project::GetFileByPathOnDisk | ( | const std::string & | path | ) |
void Project::PushFile | ( | Ref< ProjectFile > | file | ) |
bool Project::DeleteFile_ | ( | Ref< ProjectFile > | file | ) |
void Project::RegisterNotification | ( | ProjectNotification * | notify | ) |
void Project::UnregisterNotification | ( | ProjectNotification * | notify | ) |
void Project::BeginBulkOperation | ( | ) |
void Project::EndBulkOperation | ( | ) |