7#ifndef LOGICALACCESS_LOCATIONNODE_HPP
8#define LOGICALACCESS_LOCATIONNODE_HPP
40 void setName(
const std::string &name);
46 std::string getName()
const;
52 std::vector<std::shared_ptr<LocationNode>> &getChildrens();
58 void setParent(std::weak_ptr<LocationNode> parent);
64 std::shared_ptr<LocationNode> getParent()
const;
70 void setNeedAuthentication(
bool needed);
76 bool getNeedAuthentication()
const;
82 void setHasProperties(
bool hasProperties);
88 bool getHasProperties()
const;
94 void setLength(
size_t length);
100 size_t getLength()
const;
106 void setLocation(std::shared_ptr<Location> location);
112 std::shared_ptr<Location> getLocation()
const;
118 void setUnit(
size_t unit);
124 size_t getUnit()
const;
130 void setCanRead(
bool can);
136 bool getCanRead()
const;
142 void setCanWrite(
bool can);
148 bool getCanWrite()
const;
A location node description. This describe a location on a hierachical view.
Definition: locationnode.hpp:24
bool d_needAuthentication
Need authentication to access the node data.
Definition: locationnode.hpp:164
size_t d_length
The data node length.
Definition: locationnode.hpp:174
size_t d_unit
The byte unit.
Definition: locationnode.hpp:189
bool d_can_write
Write capability.
Definition: locationnode.hpp:199
bool d_hasProperties
The node has properties or not.
Definition: locationnode.hpp:169
std::vector< std::shared_ptr< LocationNode > > d_childrens
The childrens node.
Definition: locationnode.hpp:154
std::weak_ptr< LocationNode > d_parent
The parent node.
Definition: locationnode.hpp:159
std::shared_ptr< Location > d_location
The associated location.
Definition: locationnode.hpp:184
std::string d_name
The current location node name.
Definition: locationnode.hpp:179
bool d_can_read
Read capability.
Definition: locationnode.hpp:194