storage_backend.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Pavel Kirienko <pavel.kirienko@gmail.com>
3  */
4 
5 #ifndef UAVCAN_PROTOCOL_DYNAMIC_NODE_ID_SERVER_STORAGE_BACKEND_HPP_INCLUDED
6 #define UAVCAN_PROTOCOL_DYNAMIC_NODE_ID_SERVER_STORAGE_BACKEND_HPP_INCLUDED
7 
10 
11 namespace uavcan
12 {
13 namespace dynamic_node_id_server
14 {
23 {
24 public:
28  enum { MaxStringLength = 32 };
29 
34  enum { MaxKeyValuePairs = 512 };
35 
41 
47  virtual String get(const String& key) const = 0;
48 
54  virtual void set(const String& key, const String& value) = 0;
55 
56  virtual ~IStorageBackend() { }
57 };
58 
59 }
60 }
61 
62 #endif // Include guard
types.hpp
uavcan::dynamic_node_id_server::IStorageBackend::String
MakeString< MaxStringLength >::Type String
Definition: storage_backend.hpp:40
get
ROSCPP_DECL bool get(const std::string &key, bool &b)
uavcan::Array
Definition: array.hpp:424
uavcan::dynamic_node_id_server::IStorageBackend
Definition: storage_backend.hpp:22
uavcan::dynamic_node_id_server::IStorageBackend::~IStorageBackend
virtual ~IStorageBackend()
Definition: storage_backend.hpp:56
UAVCAN_EXPORT
#define UAVCAN_EXPORT
Definition: libuavcan/libuavcan/include/uavcan/build_config.hpp:108
build_config.hpp
set
ROSCPP_DECL void set(const std::string &key, bool b)
uavcan
Definition: libuavcan/libuavcan/include/uavcan/build_config.hpp:204


uavcan_communicator
Author(s):
autogenerated on Fri Dec 13 2024 03:10:03