FACT++  1.0
template<class T >
int AutoScheduler< T >::Execute ( )
inline

Definition at line 659 of file scheduler.cc.

References Error().

660  {
661  switch (T::GetCurrentState())
662  {
663  case kSM_Scheduling:
664  try
665  {
666  return Schedule() ? T::kSM_Error : T::kSM_Ready;
667  }
668  catch (const mysqlpp::Exception &e)
669  {
670  T::Error(string("MySQL: ")+e.what());
671  return T::kSM_Error;
672  }
673 
674  // This does an autmatic reset (FOR TESTING ONLY)
675  case T::kSM_Error:
676  return T::kSM_Ready;
677  }
678  return T::GetCurrentState();
679  }
int Schedule()
Definition: scheduler.cc:151
Error()
Definition: HeadersFTM.h:197

+ Here is the call graph for this function: