Go to the documentation of this file.
25 #include <MemoryX/interface/core/EntityBase.h>
26 #include <MemoryX/interface/memorytypes/MemoryEntities.h>
31 class GridFileManager;
48 public AbstractEntityWrapperBase
57 std::string
getId()
const;
75 void setEntity(
const EntityBasePtr& entity);
104 std::string
cacheAttributeFile(
const std::string& attrName,
bool preserveOriginalFName =
false)
const;
void removeAttributeFiles(const memoryx::EntityAttributeBasePtr &attr)
removes all files of an attribute from the gridfs
void cleanUpAttributeFiles(EntityAttributeBasePtr oldAttr, EntityAttributeBasePtr newAttr)
cleanUpAttributeFiles compares the files attached to the two given attributes and removes the files o...
EntityBasePtr getEntity() const
Get the stored name of the stored entity.
AbstractEntityWrapper is a superclass for all covenience classes, which provide typed access to entit...
~AbstractEntityWrapper() override
std::string getName() const
Get the name of the stored entity.
std::string cacheAttributeFile(const std::string &attrName, bool preserveOriginalFName=false) const
void setEntity(const EntityBasePtr &entity)
Replace the stored entity with a new one.
std::shared_ptr< GridFileManager > GridFileManagerPtr
std::string getId() const
Get the identifier of the stored entity.
AbstractFileEntityWrapper(GridFileManagerPtr fileManager)
GridFileManagerPtr fileManager