Loader::params *Loader::params::clone() const { Loader::params *p = new Loader::params(); if (Input != nullptr) p->setInput(*Input); if (Header != nullptr) p->setHeader(*Header); p->setBasePath(BasePath); p->setFactory(Factory); p->setInsertOnly(InsertOnly); p->setReturnsMutableVerticalTable(ReturnsMutableVerticalTable); p->setModifiableMutableVerticalTable(ModifiableMutableVerticalTable); p->setReferenceTable(ReferenceTable); p->setCompressed(Compressed); return p; }
void StorageManager::loadTable(std::string name, const Loader::params ¶meters) { Loader::params *p = parameters.clone(); p->setBasePath(Settings::getInstance()->getDBPath() + "/"); addStorageTable(name, *p); delete p; }