2 #ifndef _MADARA_CONTAINERS_BUFFER_VECTOR_H_ 3 #define _MADARA_CONTAINERS_BUFFER_VECTOR_H_ 7 #include "madara/LockType.h" 55 bool delete_vars =
true,
72 bool delete_vars =
true,
98 void modify (
size_t index);
112 void push_back (
const unsigned char * value,
size_t size);
120 void resize (
int size = -1,
bool delete_vars =
true);
130 void exchange (
BufferVector & other,
bool refresh_keys =
true,
131 bool delete_keys =
true);
150 size_t size (
void)
const;
186 void set_delimiter (
const std::string & delimiter);
221 bool exists (
size_t index)
const;
257 int set_file (
size_t index,
258 const unsigned char * value,
size_t size);
269 int set_file (
size_t index,
270 const unsigned char * value,
size_t size,
280 int set_jpeg (
size_t index,
281 const unsigned char * value,
size_t size);
291 int set_jpeg (
size_t index,
292 const unsigned char * value,
size_t size,
302 void set_quality (
size_t index, uint32_t quality,
334 bool is_true (
void)
const;
340 bool is_false (
void)
const;
348 virtual bool is_true_ (
void)
const;
354 virtual bool is_false_ (
void)
const;
364 virtual void modify_ (
void);
404 #endif // _MADARA_CONTAINERS_BUFFER_VECTOR_H_ This class encapsulates an entry in a KnowledgeBase.
This class stores a vector of character buffers.
VariableReference size_
Reference to the size field of the vector space.
std::vector< VariableReference > vector_
Values of the array.
MADARA_Export int read_file(const std::string &filename, void *&buffer, size_t &size, bool add_zero_char=false)
Reads a file into a provided void pointer.
This class stores variables and their values for use by any entity needing state information in a thr...
Optimized reference to a variable within the knowledge base.
Provides container classes for fast knowledge base access and mutation.
::std::vector< KnowledgeRecord > KnowledgeVector
This class provides a distributed knowledge base to users.
std::string delimiter_
Delimiter for the prefix to subvars.
MADARA_Export bool exists(const char *originator, uint64_t clock, uint32_t update_number, OriginatorFragmentMap &map)
Checks if a fragment already exists within a fragment map.
Provides functions and classes for the distributed knowledge base.
ThreadSafeContext * context_
Variable context that we are modifying.
Settings for applying knowledge updates.
Copyright (c) 2015 Carnegie Mellon University.
Settings for applying knowledge updates.
Provides an interface for external functions into the MADARA KaRL variable settings.
BufferVector BufferArray
provide the Array alias for the BufferVector class
This class is an abstract base class for all containers.