The Sleuth Kit Framework
4.1
|
Interface for classes that represent different types of modules in the pipeline. More...
#include <TskModule.h>
Public Types | |
enum | Status { OK = 0, FAIL, STOP } |
Standard values that module methods can return. More... | |
Public Member Functions | |
std::string | getArguments () const |
Get the arguments. | |
std::string | getDescription () const |
Get the module description. | |
int | getModuleId () const |
Get the module id. | |
std::string | getName () const |
Get the module name. | |
virtual std::string | getPath () const |
Returns the fully qualified path to the module. | |
std::string | getVersion () const |
Get the module version. | |
virtual Status | report () |
Method that is used to run report modules. More... | |
virtual Status | run (TskFile *fileToAnalyze)=0 |
Method that is used to run file analysis modules. More... | |
void | setArguments (const std::string &args) |
Set the arguments to be passed to the module. | |
void | setModuleId (int moduleId) |
Set the module id. | |
virtual void | setPath (const std::string &location) |
Sets the location of the module given an absolute or relative location. More... | |
Static Public Attributes | |
static const std::string | CURRENT_FILE_MACRO = "#CURRENT_FILE#" |
The TskModule class supports the use of a string macro that is expanded to the path of the file currently under analysis. More... | |
Static Protected Member Functions | |
static std::string | expandArgumentMacros (const std::string &args, const TskFile *fileToAnalyze) |
Protected Attributes | |
std::string | m_arguments |
std::string | m_description |
int | m_moduleId |
std::string | m_modulePath |
std::string | m_name |
std::string | m_version |
Interface for classes that represent different types of modules in the pipeline.
Example module types include dynamic library and executables. These modules perform some operation in the context of a TskPipeline.
enum TskModule::Status |
Standard values that module methods can return.
|
inlinevirtual |
Method that is used to run report modules.
Reimplemented in TskExecutableModule, and TskReportPluginModule.
References OK.
Referenced by TskReportPluginModule::run().
Method that is used to run file analysis modules.
Implemented in TskExecutableModule, TskFileAnalysisPluginModule, and TskReportPluginModule.
|
virtual |
Sets the location of the module given an absolute or relative location.
For relative paths we look for the module first in PROG_DIR, then MODULE_DIR, then the current directory, and finally the system path. Will throw an exception if the module cannot be found.
location | Absolute or relative path string for module. |
Reimplemented in TskPluginModule, and TskExecutableModule.
References LOGINFO, TskSystemProperties::MODULE_DIR, and TskSystemProperties::PROG_DIR.
Referenced by TskExecutableModule::setPath().
|
static |
The TskModule class supports the use of a string macro that is expanded to the path of the file currently under analysis.
This macro is intended to be used in the arguments strings passed to the initialization functions of file analysis modules. "#CURRENT_FILE#" is the literal form of the macro.
Copyright © 2011-2013 Brian Carrier. (carrier -at- sleuthkit -dot- org)
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.