void Ambassador::stopRegistrationForObjectClass ( RTI::ObjectClassHandle theClass) throw ( RTI::ObjectClassNotPublished, RTI::FederateInternalError) { //std::cout << "Ambassador::stopRegistrationForObjectClass(): "; NetIO* netIO = getNetIO(); int classIndex = netIO->findObjectClassIndex(theClass); if (classIndex != 0 ) { //std::cout << classIndex; netIO->setObjectClassRegistrationFlag(classIndex,false); } //std::cout << std::endl; }
void Ambassador::startRegistrationForObjectClass ( RTI::ObjectClassHandle theClass) throw ( RTI::ObjectClassNotPublished, RTI::FederateInternalError) { //std::cout << "Ambassador::startRegistrationForObjectClass(): " ; NetIO* netIO = getNetIO(); int classIndex = netIO->findObjectClassIndex(theClass); if (classIndex != 0 && netIO->isObjectClassPublished(classIndex)) { // It's an object class that we publish, so we can start to // register our objects ... //std::cout << classIndex; netIO->setObjectClassRegistrationFlag(classIndex,true); } //std::cout << std::endl; }