Skip to content

Commit

Permalink
OrcLib: UtiltiesMain: add methods ToolName, ToolVersion, ToolDescription
Browse files Browse the repository at this point in the history
Open to version definition outside kOrcFileVerStringW.

Add default Tool*() functions.
  • Loading branch information
jgautier-anssi authored and fabienfl-orc committed Feb 6, 2024
1 parent 45b5605 commit 6c7d24e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/OrcCommand/UtilitiesMain.h
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,14 @@ class UtilitiesMain
virtual HRESULT GetConfigurationFromArgcArgv(int argc, const WCHAR* argv[]) = 0;
virtual HRESULT CheckConfiguration() = 0;

//
// Tool Description
//
static LPCWSTR ToolName() { return kOrcMetaNameW; }
static LPCWSTR ToolDescription() { return L"DFIR-ORC Windows artefact collection tool"; }
static LPCWSTR ToolVersion() { return kOrcVersionStringW; }


//
// Output handling
//
Expand Down Expand Up @@ -850,7 +858,7 @@ class UtilitiesMain
// TODO: FIXME

Cmd.LoadCommonExtensions();
Cmd.PrintHeader(UtilityT::ToolName(), UtilityT::ToolDescription(), kOrcFileVerStringW);
Cmd.PrintHeader(UtilityT::ToolName(), UtilityT::ToolDescription(), UtilityT::ToolVersion());

try
{
Expand Down

0 comments on commit 6c7d24e

Please sign in to comment.