Example #1
0
void AXRController::setRoot(HSSContainer::p newRoot){
    this->root = newRoot;
    if(this->core->getParserHSS()->currentObjectContextSize() == 0){
        this->core->getParserHSS()->currentObjectContextAdd(newRoot);
    }
    newRoot->setRoot(true);
}
Example #2
0
void AXRController::setRoot(HSSContainer::p newRoot){
    this->root = newRoot;
    HSSParser::p hssparser = AXRCore::getInstance()->getParserHSS();
    if(hssparser->currentObjectContextSize() == 0){
        hssparser->currentObjectContextAdd(newRoot);
    }
    newRoot->setRoot(true);
}