#include <ScriptingAgent.h>
Inheritance diagram for ScriptingAgent:
Public Member Functions | |
ScriptingAgent () | |
ScriptingAgent (const string &file) | |
~ScriptingAgent () | |
virtual YCPValue | Read (const YCPPath &path, const YCPValue &arg=YCPNull(), const YCPValue &opt=YCPNull()) |
virtual YCPBoolean | Write (const YCPPath &path, const YCPValue &value, const YCPValue &arg=YCPNull()) |
virtual YCPList | Dir (const YCPPath &path) |
virtual YCPValue | Execute (const YCPPath &path, const YCPValue &value=YCPNull(), const YCPValue &arg=YCPNull()) |
virtual YCPMap | Error (const YCPPath &path) |
YCPValue | otherCommand (const YCPTerm &term) |
virtual YCPBoolean | RegisterAgent (const YCPPath &path, const YCPValue &value) |
virtual YCPBoolean | UnregisterAgent (const YCPPath &path) |
virtual YCPBoolean | UnregisterAllAgents () |
virtual YCPBoolean | UnmountAgent (const YCPPath &path) |
Private Types | |
typedef vector< SCRSubAgent * > | SubAgents |
Private Member Functions | |
YCPValue | MountAgent (const YCPPath &path) |
YCPValue | MountAllAgents () |
YCPValue | UnmountAllAgents () |
YCPValue | executeSubagentCommand (const char *command, const YCPPath &path, const YCPValue &arg=YCPNull(), const YCPValue &optpar=YCPNull()) |
SubAgents::iterator | findByPath (const YCPPath &path) |
void | parseConfigFiles (const string &directory) |
void | parseSingleConfigFile (const string &file) |
Private Attributes | |
SubAgents | agents |
|
Type and list of subagents |
|
Constructor. Also scans for scr-files. |
|
Constructor. Load only a single SCR.
|
|
Destructor. Also deletes subagents. |
|
Get a list of all subtrees. Implements SCRAgent. |
|
Get a detailed error description if a previous command failed Reimplemented from SCRAgent. |
|
Executes a command. Reimplemented from SCRAgent. |
|
Calls a subagent to execute a Read, Write, Dir or other command
|
|
Find agent exactly matching path. Returns agents.end () if the path isn't covered by any agent. |
|
Mount the agent handling path. This function is called automatically when the agent is used. |
|
Mount all agents. |
|
Handle the commands 'UnregisterAgent', 'UnregisterAllAgents', 'MountAgent', 'MountAllAgents', 'UnmountAgent' and 'UnmountAllAgents'. Reimplemented from SCRAgent. |
|
Parses the given directory and all its subdirectories for SCR configuration files and evaluates them with the SCR interpreter. |
|
Parses a single SCR configuration file and evaluates them with the SCR interpreter. |
|
Reads data. Destroy the result after use.
Implements SCRAgent. |
|
Register a agent, that is specify the scr path and the filename for it's definition or the term with the definition. The preferred way is to specify the filename. Reimplemented from SCRAgent. |
|
Unmount the agent handling path. Reimplemented from SCRAgent. |
|
Unmount all agents. |
|
Unregister a agent. Reimplemented from SCRAgent. |
|
Unregister all agents. Reimplemented from SCRAgent. |
|
Writes data. Destroy the result after use. Implements SCRAgent. |
|
|