1#ifndef LOGGING_PROPERTYREPOSITORY_H
2#define LOGGING_PROPERTYREPOSITORY_H
21 std::shared_ptr<PropertyRepositoryEntry> m_propertyRepositoryEntry;
24 std::shared_ptr<PropertyRepositoryEntry> init(
const std::vector<std::shared_ptr<Entry>> &
entries)
28 std::shared_ptr<PropertyRepositoryEntry>
tmp = std::static_pointer_cast<PropertyRepositoryEntry>(
entry);
29 if (
tmp->getType() != m_type) {
continue; }
39 : m_type(std::
move(type)),
53 if (m_propertyRepositoryEntry ==
nullptr) {
return false; }
54 return m_propertyRepositoryEntry->isShadow();
58 bool isEnabled()
const {
return m_propertyRepositoryEntry !=
nullptr; }
68 if (m_propertyRepositoryEntry ==
nullptr) {
return false; }
69 return m_propertyRepositoryEntry->isMutable();
75 virtual void save(
const std::vector<std::shared_ptr<PropertyBase>> &
properties) = 0;
96 virtual std::vector<std::shared_ptr<PropertyBase>>
awake() = 0;
111 virtual std::vector<std::shared_ptr<PropertyBase>>
allOf(
const std::string &processName =
".*",
112 const std::string &className =
".*",
113 const std::string &instanceName =
".*",
114 const std::string &name =
".*")
Definition DataStorage.h:13
Definition PropertyRepositoryComponent.h:11
Definition PropertyRepositoryType.h:11
Definition PropertyRepository.h:18
virtual void save(const std::vector< std::shared_ptr< PropertyBase > > &properties)=0
bool isEnabled() const
Definition PropertyRepository.h:58
virtual DataStorage getDataStorage()=0
virtual void save(std::shared_ptr< PropertyBase > property)=0
bool isShadow() const
Definition PropertyRepository.h:51
virtual void deleteOf(const std::vector< std::shared_ptr< PropertyBase > > &properties)
Definition PropertyRepository.h:91
PropertyRepositoryType getType() const
Definition PropertyRepository.h:48
bool isMutable() const
Definition PropertyRepository.h:66
PropertyRepository(PropertyRepositoryType type, const std::shared_ptr< Configuration > &configuration)
Definition PropertyRepository.h:38
virtual std::vector< std::shared_ptr< PropertyBase > > awake()=0
virtual std::vector< std::shared_ptr< PropertyBase > > allOf(const std::string &processName=".*", const std::string &className=".*", const std::string &instanceName=".*", const std::string &name=".*")
Definition PropertyRepository.h:111
virtual ~PropertyRepository()=default
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9