Go to the documentation of this file.
23 #ifndef ARMARX_COMPONENT_PriorKnowledgeImporter_PriorKnowledgeImporter_H
28 #include <MemoryX/interface/components/PriorKnowledgeInterface.h>
29 #include <MemoryX/interface/components/CommonStorageInterface.h>
45 defineOptionalProperty<std::string>(
"TaskName",
"ImportFiles",
"Task to perform: ImportFiles, AddParents, ConvertFormat, AddRelations")
46 .setCaseInsensitive(
true);
47 defineRequiredProperty<std::string>(
"FilesDirectory",
"Name of directory to load files from")
48 .setCaseInsensitive(
true);
49 defineRequiredProperty<std::string>(
"FilesDbName",
"Name of snapshot Mongo database to load files into")
50 .setCaseInsensitive(
true);
70 getConfigIdentifier()));
76 return "PriorKnowledgeImporter";
78 void onInitComponent()
override;
79 void onConnectComponent()
override;
81 void importObjectClass(
const std::string& ivFile,
const std::string& className);
83 PriorKnowledgeInterfacePrx memoryPrx;
84 PersistentObjectClassSegmentBasePrx classesSegmentPrx;
85 CommonStorageInterfacePrx dataBasePrx;
90 std::string filesDBName;
95 void convertToNewFormat();
PriorKnowledgeImporterPropertyDefinitions(std::string prefix)
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
#define ARMARXCOMPONENT_IMPORT_EXPORT
Baseclass for all ArmarX ManagedIceObjects requiring properties.
Default component property definition container.
std::shared_ptr< GridFileManager > GridFileManagerPtr
std::string getDefaultName() const override
Retrieve default name of component.
ComponentPropertyDefinitions(std::string prefix, bool hasObjectNameParameter=true)
The PriorKnowledgeImporter class is used to add object descriptions to the PriorKnowledge database.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.