ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

A base script command for disassembly use. More...

#include <command.h>

Inheritance diagram for Stark::Tools::Command:
Collaboration diagram for Stark::Tools::Command:

List of all members.

Classes

struct  SubTypeDesc

Public Types

enum  ControlFlowType { kFlowNormal, kFlowBranch, kFlowEnd }
typedef Common::Array
< Resources::Command::Argument
ArgumentArray

Public Member Functions

 Command (Command *command)
 Command (Resources::Command *resource)
void printCall () const
 Print a call to this command to the debug output.
uint16 getIndex () const
 This command's resource tree index.
Resources::Command::SubType getSubType () const
bool hasSubtypeDescription () const
ArgumentArray getEffectiveArguments () const
 List the command's arguments ignoring the control flow related ones.

Protected Member Functions

Common::String describeArguments (DefinitionRegistry *definitions) const
 List the arguments values as a coma separated string.

Static Protected Member Functions

static const SubTypeDescsearchSubTypeDesc (Resources::Command::SubType subType)
 Get a description for a command subtype from an internal database.

Protected Attributes

uint16 _index
Resources::Command::SubType _subType
const SubTypeDesc_subTypeDesc
ArgumentArray _arguments

Detailed Description

A base script command for disassembly use.

As opposed to the Command class in the Resources namespace, this class is not meant to be executed. It is meant to be used for script disassembly, to store analysis results.

Definition at line 45 of file command.h.


Member Typedef Documentation


Member Enumeration Documentation

Enumerator:
kFlowNormal 
kFlowBranch 
kFlowEnd 

Definition at line 47 of file command.h.


Constructor & Destructor Documentation

Stark::Tools::Command::Command ( Command command  ) 

Definition at line 31 of file command.cpp.

Stark::Tools::Command::Command ( Resources::Command resource  ) 

Definition at line 38 of file command.cpp.


Member Function Documentation

Common::String Stark::Tools::Command::describeArguments ( DefinitionRegistry definitions  )  const [protected]

List the arguments values as a coma separated string.

Definition at line 167 of file command.cpp.

Command::ArgumentArray Stark::Tools::Command::getEffectiveArguments (  )  const

List the command's arguments ignoring the control flow related ones.

Definition at line 143 of file command.cpp.

uint16 Stark::Tools::Command::getIndex (  )  const

This command's resource tree index.

Definition at line 204 of file command.cpp.

Resources::Command::SubType Stark::Tools::Command::getSubType (  )  const

Definition at line 212 of file command.cpp.

bool Stark::Tools::Command::hasSubtypeDescription (  )  const

Definition at line 208 of file command.cpp.

void Stark::Tools::Command::printCall (  )  const

Print a call to this command to the debug output.

Definition at line 200 of file command.cpp.

const Command::SubTypeDesc * Stark::Tools::Command::searchSubTypeDesc ( Resources::Command::SubType  subType  )  [static, protected]

Get a description for a command subtype from an internal database.

Definition at line 45 of file command.cpp.


Member Data Documentation

Definition at line 86 of file command.h.

Definition at line 83 of file command.h.

Definition at line 85 of file command.h.


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


Generated on Sat Nov 16 2019 05:03:57 for ResidualVM by doxygen 1.7.1
curved edge   curved edge