COPASI API  4.16.103
Functions
CCopasiTask.cpp File Reference
#include "copasi.h"
#include "CCopasiTask.h"
#include "CCopasiProblem.h"
#include "CCopasiMethod.h"
#include "report/CReport.h"
#include "report/CKeyFactory.h"
#include "utilities/COutputHandler.h"
#include "model/CModel.h"
#include "model/CState.h"
#include "report/CCopasiObjectReference.h"
#include "report/CCopasiTimer.h"
#include "CopasiDataModel/CCopasiDataModel.h"
#include "copasi/report/CCopasiRootContainer.h"
Include dependency graph for CCopasiTask.cpp:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const CCopasiTask::CDescription &o)
 
std::ostream & operator<< (std::ostream &os, const CCopasiTask::CResult &o)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CCopasiTask::CDescription o 
)

Output stream operator

Parameters
ostream& os
constCDescription & A
Returns
ostream & os

Definition at line 411 of file CCopasiTask.cpp.

References CCopasiTask::getMethod(), CCopasiObject::getObjectName(), CCopasiObject::getObjectParent(), CCopasiTask::getProblem(), CCopasiProblem::print(), and CCopasiMethod::print().

413 {
414  const CCopasiTask & Task = *static_cast<const CCopasiTask *>(o.getObjectParent());
415 
416  os << Task.getObjectName() << " Task" << std::endl << std::endl;
417 
418  if (Task.getProblem())
419  {
420  Task.getProblem()->print(&os);
421  os << std::endl;
422  }
423  else
424  os << "No Problem Specified!" << std::endl;
425 
426  if (Task.getMethod())
427  {
428  Task.getMethod()->print(&os);
429  os << std::endl;
430  }
431  else
432  os << "No Method Specified!" << std::endl;
433 
434  return os;
435 }
CCopasiProblem * getProblem()
const std::string & getObjectName() const
virtual void print(std::ostream *ostream) const
virtual void print(std::ostream *ostream) const
CCopasiMethod * getMethod()
CCopasiContainer * getObjectParent() const
std::ostream& operator<< ( std::ostream &  os,
const CCopasiTask::CResult o 
)

Output stream operator

Parameters
ostream& os
constCResult & A
Returns
ostream & os

Definition at line 451 of file CCopasiTask.cpp.

References CCopasiObject::getObjectName(), CCopasiObject::getObjectParent(), CCopasiTask::getProblem(), and CCopasiProblem::printResult().

453 {
454  const CCopasiTask & Task = *static_cast<const CCopasiTask *>(o.getObjectParent());
455 
456  os << Task.getObjectName() << " Result:" << std::endl << std::endl;
457 
458  if (Task.getProblem())
459  {
460  Task.getProblem()->printResult(&os);
461  os << std::endl;
462  }
463  else
464  os << "No Problem Specified!" << std::endl;
465 
466  return os;
467 }
CCopasiProblem * getProblem()
const std::string & getObjectName() const
virtual void printResult(std::ostream *ostream) const
CCopasiContainer * getObjectParent() const