23#ifndef ARMARX_COMPONENT_PriorKnowledgeImporter_PriorKnowledgeImporter_H
31#include <MemoryX/interface/components/CommonStorageInterface.h>
32#include <MemoryX/interface/components/PriorKnowledgeInterface.h>
46 "Task to perform: ImportFiles, AddParents, ConvertFormat, AddRelations")
47 .setCaseInsensitive(
true);
49 "Name of directory to load files from")
50 .setCaseInsensitive(
true);
52 "FilesDbName",
"Name of snapshot Mongo database to load files into")
53 .setCaseInsensitive(
true);
77 return "PriorKnowledgeImporter";
80 void onInitComponent()
override;
81 void onConnectComponent()
override;
83 void importObjectClass(
const std::string& ivFile,
const std::string& className);
86 PriorKnowledgeInterfacePrx memoryPrx;
87 PersistentObjectClassSegmentBasePrx classesSegmentPrx;
88 CommonStorageInterfacePrx dataBasePrx;
93 std::string filesDBName;
98 void convertToNewFormat();
#define ARMARXCOMPONENT_IMPORT_EXPORT
Default component property definition container.
ComponentPropertyDefinitions(std::string prefix, bool hasObjectNameParameter=true)
Baseclass for all ArmarX ManagedIceObjects requiring properties.
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
PropertyDefinition< PropertyType > & defineOptionalProperty(const std::string &name, PropertyType defaultValue, const std::string &description="", PropertyDefinitionBase::PropertyConstness constness=PropertyDefinitionBase::eConstant)
PropertyDefinition< PropertyType > & defineRequiredProperty(const std::string &name, const std::string &description="", PropertyDefinitionBase::PropertyConstness constness=PropertyDefinitionBase::eConstant)
PriorKnowledgeImporterPropertyDefinitions(std::string prefix)
The PriorKnowledgeImporter class is used to add object descriptions to the PriorKnowledge database.
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
std::string getDefaultName() const override
Retrieve default name of component.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
IceUtil::Handle< MongoSerializer > MongoSerializerPtr
std::shared_ptr< GridFileManager > GridFileManagerPtr