Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::ShellScript Class Reference

#include <ShellScript.h>

Inheritance diagram for PLearn::ShellScript:

Inheritance graph
[legend]
Collaboration diagram for PLearn::ShellScript:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ShellScript ()
 Default constructor.

 PLEARN_DECLARE_OBJECT (ShellScript)
virtual void build ()
 Should call simply inherited::build(), then this class's build_().

virtual void makeDeepCopyFromShallowCopy (map< const void *, void * > &copies)
 Transforms a shallow copy into a deep copy.

virtual void run ()
 Execute the shell commands.


Public Attributes

TVec< stringshell_commands

Static Protected Member Functions

void declareOptions (OptionList &ol)
 Declares this class' options.


Private Types

typedef Object inherited

Private Member Functions

void build_ ()
 This does the actual building.


Member Typedef Documentation

typedef Object PLearn::ShellScript::inherited [private]
 

Reimplemented from PLearn::Object.

Definition at line 57 of file ShellScript.h.


Constructor & Destructor Documentation

PLearn::ShellScript::ShellScript  ) 
 

Default constructor.

Definition at line 49 of file ShellScript.cc.


Member Function Documentation

void PLearn::ShellScript::build  )  [virtual]
 

Should call simply inherited::build(), then this class's build_().

This method should be callable again at later times, after modifying some option fields to change the "architecture" of the object.

Reimplemented from PLearn::Object.

Definition at line 89 of file ShellScript.cc.

References build_().

void PLearn::ShellScript::build_  )  [private]
 

This does the actual building.

Reimplemented from PLearn::Object.

Definition at line 77 of file ShellScript.cc.

Referenced by build().

void PLearn::ShellScript::declareOptions OptionList ol  )  [static, protected]
 

Declares this class' options.

Reimplemented from PLearn::Object.

Definition at line 62 of file ShellScript.cc.

References PLearn::declareOption(), and PLearn::OptionList.

void PLearn::ShellScript::makeDeepCopyFromShallowCopy map< const void *, void * > &  copies  )  [virtual]
 

Transforms a shallow copy into a deep copy.

Definition at line 95 of file ShellScript.cc.

References PLearn::deepCopyField(), and shell_commands.

PLearn::ShellScript::PLEARN_DECLARE_OBJECT ShellScript   ) 
 

void PLearn::ShellScript::run  )  [virtual]
 

Execute the shell commands.

Reimplemented from PLearn::Object.

Definition at line 104 of file ShellScript.cc.

References c_str(), PLearn::TVec< string >::length(), and shell_commands.


Member Data Documentation

TVec<string> PLearn::ShellScript::shell_commands
 

Definition at line 73 of file ShellScript.h.

Referenced by makeDeepCopyFromShallowCopy(), and run().


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:24:10 2004 for PLearn by doxygen 1.3.7