Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Member Functions | Private Attributes
RunPlugins Class Reference

#include <run_plugin.h>

Collaboration diagram for RunPlugins:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RunPlugins (void)
void add (const std::string &cmd)
bool run (void)
bool run (RunPlugin::substitute_t subst, void *arg)
int result (void)

Private Attributes

std::list< RunPlugin * > plugins_
int result_

Detailed Description

Definition at line 46 of file run_plugin.h.


Constructor & Destructor Documentation

RunPlugins::RunPlugins ( void  ) [inline]

Definition at line 51 of file run_plugin.h.

:result_(0) { };

Member Function Documentation

void RunPlugins::add ( const std::string &  cmd)

Definition at line 223 of file run_plugin.cpp.

                                         {
  RunPlugin* r = new RunPlugin(cmd);
  if(!r) return;
  if(!(*r)) return;
  plugins_.push_back(r);
}
int RunPlugins::result ( void  ) [inline]

Definition at line 55 of file run_plugin.h.

{ return result_; };

Here is the caller graph for this function:

bool RunPlugins::run ( void  )

Definition at line 230 of file run_plugin.cpp.

                         {
  for(std::list<RunPlugin*>::iterator r = plugins_.begin();
                                  r != plugins_.end();++r) {
    if(!(*r)->run()) return false;
    if((*r)->result() != 0) {
      result_=result(); return true;
    };
  };
  result_=0;
  return true;
}

Here is the call graph for this function:

bool RunPlugins::run ( RunPlugin::substitute_t  subst,
void *  arg 
)

Definition at line 242 of file run_plugin.cpp.

                                                          {
  for(std::list<RunPlugin*>::iterator r = plugins_.begin();
                                  r != plugins_.end();++r) {
    if(!(*r)->run(subst,arg)) return false;
    if((*r)->result() != 0) {
      result_=result(); return true;
    };
  };
  result_=0;
  return true;
}

Here is the call graph for this function:


Member Data Documentation

std::list<RunPlugin*> RunPlugins::plugins_ [private]

Definition at line 48 of file run_plugin.h.

int RunPlugins::result_ [private]

Definition at line 49 of file run_plugin.h.


The documentation for this class was generated from the following files: