# Global

##

### Members

#### bDetected

  The flag to indicate the signature was found.

#### sName

  The name of the signature.

#### sOptions

  Options used by the signature.

#### sType

  The type of the signature. For example `compiler` or `packer`.

#### sVersion

  The version of the signature.

### Methods

#### _log(sString)

  Display a message in the log window or as a console error. It is used to debug signatures.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `sString` | String | The message.

  ##### Example

      _log("Hello world!"); // display a string
      _log(123); // display a number

#### append(…sString) → {String}

  Append one or more strings, separating with ",".

  ##### Parameters:

  Name | Type | Attributes | Description
  --- | --- | --- | ---
  `sString` | String | <repeatable> | String to append.

  ##### Returns:

  The new string.
  Type
    String

  ##### Example

      sOptions=sOptions.append("debug");

#### includeScript(sScriptName)

  Include another script into this one.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `sScriptName` | String | The script name. Default path is `$APP/db`.

  ##### Example

      includeScript("Cab"); // include script $APP/db/Cab

#### init(sTypeopt, sNameopt, sVersionopt, sOptionsopt)

  Initialize a signature.

  ##### Parameters:

  Name | Type | Attributes | Default | Description
  --- | --- | --- | --- | ---
  `sType` | String | <optional> | "unknown" | The signature type.
  `sName` | String | <optional> | "unknown" | The signature name.
  `sVersion` | String | <optional> | "" | The signature version.
  `sOptions` | String | <optional> | "" | The signature options.

#### result(bShowType, bShowVersion, bShowOptions) → {String}

  Get a result string appropriate to the class.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `bShowType` | Bool | True to include the type.
  `bShowVersion` | Bool | True to include the version.
  `bShowOptions` | Bool | True to include the options.

  ##### Returns:

  Type
    String