---
name: "ScriptModule"
section: "3"
platform: "linux"
package: "libccscript-dev"
version: "2.5.7-1"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/ScriptModule"
---

# ScriptModule(3)

This class is used for generic ccScript DSO plugins. ccScript loadable module.

## NAME

ScriptModule - This class is used for generic ccScript DSO plugins. ccScript loadable module.

## SYNOPSIS

`#include <script.h>`

Inherits Script.

### Protected Methods

virtual void **moduleAttach** (**ScriptInterp** \*interp)\
 *Method to call for handling script attach events.* virtual void **moduleDetach** (**ScriptInterp** \*interp)\
 *Method to call for handling script detach events.* virtual char \* **getSession** (**ScriptInterp** \*interp, Line \*line, Session \*\*session)\
 *Check for script handler.* virtual char \* **checkScript** (Line \*line, **ScriptImage** \*img)\
 *Validate script command for parser.* **ScriptModule** (const char \*name)\
 *Construct and link-in a command handler.*

### Static Protected Methods

ScriptModule \* **find** (const char \*name)\
 *Find a given module.*

### Friends

class **ScriptInterp**\
 class **ScriptCommand**\

## DETAILED DESCRIPTION

This class is used for generic ccScript DSO plugins. ccScript loadable module.

This allows plugins to become part of the base ccScript engine.

**Author:**  David Sugar \<dyfet@ostel.com\>

## CONSTRUCTOR & DESTRUCTOR DOCUMENTATION

### ScriptModule::ScriptModule (const char \* name)` [protected]`

Construct and link-in a command handler.

Parameters:

- *name*

  *of command being created.*

## MEMBER FUNCTION DOCUMENTATION

### virtual char\* ScriptModule::checkScript (Line \* line, ScriptImage \* img)` [inline, protected, virtual]`

*Validate script command for parser.*

**Returns:**  *error string or NULL if ok.*

*Parameters:*

- *script*

  *line evaluated.*

- *image*

  *set analyzed.*

### ScriptModule\* ScriptModule::find (const char \* name)` [static, protected]`

*Find a given module.*

**Returns:**  *module found.*

*Parameters:*

- *module*

  *name.*

### virtual char\* ScriptModule::getSession (ScriptInterp \* interp, Line \* line, Session \*\* session)` [inline, protected, virtual]`

*Check for script handler.*

**Returns:**  *error string.*

*Parameters:*

- *interpreter*

  *image.*

- *line*

  *object parsed.*

- *pointer*

  *to session handler.*

### virtual void ScriptModule::moduleAttach (ScriptInterp \* interp)` [inline, protected, virtual]`

*Method to call for handling script attach events.*

*Parameters:*

- *interpreter*

  *being attached.*

### virtual void ScriptModule::moduleDetach (ScriptInterp \* interp)` [inline, protected, virtual]`

*Method to call for handling script detach events.*

*Parameters:*

- *interpreter*

  *being detached.*

## AUTHOR

*Generated automatically by Doxygen for ccScript from the source code.*
