VECTO Input Manager
Loading...
Searching...
No Matches
VectoInputManager.Core.ComponentProcessor(ILogger< ComponentProcessor > logger) Class Reference

Handles component loading from XML/JSON files and signature enforcement logic. Provides reusable operations for the component command pipeline. More...

Public Member Functions

IComponentDeclaration LoadComponent (string filePath)
 Loads a component declaration from an XML or JSON file.
bool? SignatureType_v2_0 signatureOverride EnforceSignatureAction (IComponentDeclaration originalComponent, bool wasModified, bool isXmlInput, BrokenSignatureAction action)

Static Public Member Functions

static bool IsArbitraryJsonFile (string filePath)
 Checks if a JSON file is an arbitrary modification file (not a typed component). XML files always return false (they are treated as components).

Public Attributes

bool skipSigning
 Enforces the signature action for a single component. Returns (skipSigning, signatureOverride): if skipSigning is true, use signatureOverride instead of computing a fresh signature via HashAndSerialize. Throws InvalidOperationException on block conditions.

Detailed Description

Handles component loading from XML/JSON files and signature enforcement logic. Provides reusable operations for the component command pipeline.

Member Function Documentation

◆ LoadComponent()

IComponentDeclaration VectoInputManager.Core.ComponentProcessor.LoadComponent ( string filePath)
inline

Loads a component declaration from an XML or JSON file.

Parameters
filePathPath to the XML or JSON component file.
Returns
The deserialized component declaration.
Exceptions
InvalidOperationExceptionThrown when the file format is unsupported or no component declaration is found.

The documentation for this class was generated from the following file:
  • VectoInputManagerCore/Builders/ComponentProcessor.cs