#ifndef _ControlCenter_txx #define _ControlCenter_txx #include "ControlCenter.h" namespace mial{ template ControlCenter::ControlCenter() { numBehaviors = 0; behaviorToRun = NULL;//There is no current behavior to run behaviorToRunStruct = NULL; behaviorToRunStream = NULL; } template ControlCenter::~ControlCenter() { } template Behavior* ControlCenter::findBehavior(const std::string name) { // TODO make search logn for(int i=0; igetName()) == 0 ) { return behaviorList[i]; } } return NULL; } template bool ControlCenter::addBehavior(Behavior* b) { if(b != NULL) { typename Behavior::Pointer bp = b; behaviorList.push_back(bp); numBehaviors++; return true; } else return false; } }//end mial #endif