BinaryNinja::Workflow Class Reference

Public Member Functions

 Workflow (const std::string &name="")
 
 Workflow (BNWorkflow *workflow)
 
virtual ~Workflow ()
 
Ref< WorkflowClone (const std::string &name, const std::string &activity="")
 
bool RegisterActivity (Ref< Activity > activity, const std::string &description="")
 
bool RegisterActivity (Ref< Activity > activity, std::initializer_list< const char * > initializer)
 
bool RegisterActivity (Ref< Activity > activity, const std::vector< std::string > &subactivities, const std::string &description="")
 
bool Contains (const std::string &activity)
 
std::string GetConfiguration (const std::string &activity="")
 
std::string GetName () const
 
bool IsRegistered () const
 
size_t Size () const
 
Ref< ActivityGetActivity (const std::string &activity)
 
std::vector< std::string > GetActivityRoots (const std::string &activity="")
 
std::vector< std::string > GetSubactivities (const std::string &activity="", bool immediate=true)
 
bool AssignSubactivities (const std::string &activity, const std::vector< std::string > &subactivities={})
 
bool Clear ()
 
bool Insert (const std::string &activity, const std::string &newActivity)
 
bool Insert (const std::string &activity, const std::vector< std::string > &activities)
 
bool Remove (const std::string &activity)
 
bool Replace (const std::string &activity, const std::string &newActivity)
 
Ref< FlowGraphGetGraph (const std::string &activity="", bool sequential=false)
 
void ShowReport (const std::string &name)
 
- Public Member Functions inherited from BinaryNinja::CoreRefCountObject< BNWorkflow, BNNewWorkflowReference, BNFreeWorkflow >
 CoreRefCountObject ()
 
virtual ~CoreRefCountObject ()
 
BNWorkflow * GetObject () const
 
void AddRef ()
 
void Release ()
 
void AddRefForRegistration ()
 
void ReleaseForRegistration ()
 

Static Public Member Functions

static std::vector< Ref< Workflow > > GetList ()
 
static Ref< WorkflowInstance (const std::string &name="")
 
static bool RegisterWorkflow (Ref< Workflow > workflow, const std::string &description="")
 
- Static Public Member Functions inherited from BinaryNinja::CoreRefCountObject< BNWorkflow, BNNewWorkflowReference, BNFreeWorkflow >
static BNWorkflow * GetObject (CoreRefCountObject *obj)
 

Additional Inherited Members

- Public Attributes inherited from BinaryNinja::CoreRefCountObject< BNWorkflow, BNNewWorkflowReference, BNFreeWorkflow >
std::atomic< int > m_refs
 
bool m_registeredRef
 
BNWorkflow * m_object
 

Constructor & Destructor Documentation

◆ Workflow() [1/2]

BinaryNinja::Workflow::Workflow ( const std::string &  name = "")

◆ Workflow() [2/2]

Workflow::Workflow ( BNWorkflow *  workflow)

◆ ~Workflow()

virtual BinaryNinja::Workflow::~Workflow ( )
inlinevirtual

Member Function Documentation

◆ AssignSubactivities()

bool Workflow::AssignSubactivities ( const std::string &  activity,
const std::vector< std::string > &  subactivities = {} 
)

◆ Clear()

bool Workflow::Clear ( )

◆ Clone()

Ref< Workflow > Workflow::Clone ( const std::string &  name,
const std::string &  activity = "" 
)

◆ Contains()

bool Workflow::Contains ( const std::string &  activity)

◆ GetActivity()

Ref< Activity > Workflow::GetActivity ( const std::string &  activity)

◆ GetActivityRoots()

vector< string > Workflow::GetActivityRoots ( const std::string &  activity = "")

◆ GetConfiguration()

string Workflow::GetConfiguration ( const std::string &  activity = "")

◆ GetGraph()

Ref< FlowGraph > Workflow::GetGraph ( const std::string &  activity = "",
bool  sequential = false 
)

◆ GetList()

vector< Ref< Workflow > > Workflow::GetList ( )
static

◆ GetName()

string Workflow::GetName ( ) const

◆ GetSubactivities()

vector< string > Workflow::GetSubactivities ( const std::string &  activity = "",
bool  immediate = true 
)

◆ Insert() [1/2]

bool BinaryNinja::Workflow::Insert ( const std::string &  activity,
const std::string &  newActivity 
)

◆ Insert() [2/2]

bool BinaryNinja::Workflow::Insert ( const std::string &  activity,
const std::vector< std::string > &  activities 
)

◆ Instance()

Ref< Workflow > Workflow::Instance ( const std::string &  name = "")
static

◆ IsRegistered()

bool Workflow::IsRegistered ( ) const

◆ RegisterActivity() [1/3]

bool BinaryNinja::Workflow::RegisterActivity ( Ref< Activity activity,
const std::string &  description = "" 
)

◆ RegisterActivity() [2/3]

bool BinaryNinja::Workflow::RegisterActivity ( Ref< Activity activity,
const std::vector< std::string > &  subactivities,
const std::string &  description = "" 
)

◆ RegisterActivity() [3/3]

bool BinaryNinja::Workflow::RegisterActivity ( Ref< Activity activity,
std::initializer_list< const char * >  initializer 
)
inline

◆ RegisterWorkflow()

bool Workflow::RegisterWorkflow ( Ref< Workflow workflow,
const std::string &  description = "" 
)
static

◆ Remove()

bool Workflow::Remove ( const std::string &  activity)

◆ Replace()

bool Workflow::Replace ( const std::string &  activity,
const std::string &  newActivity 
)

◆ ShowReport()

void Workflow::ShowReport ( const std::string &  name)

◆ Size()

size_t Workflow::Size ( ) const

The documentation for this class was generated from the following files: