Skip to content

Conversation

@sclaiborne
Copy link
Member

No description provided.

Comment on lines +57 to +68
struct cacheItem_typ {
std::string variable;
std::string alias;
std::string value;
VAR_TYPE_enum type;
void* address = 0; // This needs to be initialized to 0
size_t length;
size_t dimension;
cacheTime lastAccessed; // TODO: Maybe make it something other than a udint
std::vector<varTools::cacheSubscribe_typ> subscribers; // This may end up being a vector of pointers of cacheSubLink_typ
std::vector<varTools::cacheAuth_typ> authorization;
};
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
struct cacheItem_typ {
std::string variable;
std::string alias;
std::string value;
VAR_TYPE_enum type;
void* address = 0; // This needs to be initialized to 0
size_t length;
size_t dimension;
cacheTime lastAccessed; // TODO: Maybe make it something other than a udint
std::vector<varTools::cacheSubscribe_typ> subscribers; // This may end up being a vector of pointers of cacheSubLink_typ
std::vector<varTools::cacheAuth_typ> authorization;
};
struct cacheItem_typ {
std::string variable;
std::string alias;
std::string value;
VAR_TYPE_enum type;
void* address = 0; // This needs to be initialized to 0
size_t length;
size_t dimension;
cacheTime lastAccessed; // TODO: Maybe make it something other than a udint
std::vector<varTools::cacheSubscribe_typ> subscribers; // This may end up being a vector of pointers of cacheSubLink_typ
std::vector<varTools::cacheAuth_typ> authorization;
std::vector<UDINT> children;
};

Maybe check out link list or trees

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants