libcyberradio 22.01.24
BasicDict.h
1/***************************************************************************
2 * \file BasicDict.h
3 *
4 * \brief Defines what types we want for all basic dictionary types.
5 *
6 * \author DA
7 * \copyright Copyright (c) 2015-2021 CyberRadio Solutions, Inc.
8 *
9 * \note The basic dictionary type supports very simple key-value mappings.
10 * Nested dictionaries (such as available in Python) are beyond the scope
11 * of anything accessible here.
12 */
13
14#ifndef INCLUDED_LIBCYBERRADIO_BASIC_DICT_H
15#define INCLUDED_LIBCYBERRADIO_BASIC_DICT_H
16
17#include <string>
18#include <map>
19
23namespace LibCyberRadio
24{
25 #define BASIC_DICT_CONTAINER std::map
27 typedef BASIC_DICT_CONTAINER<std::string, std::string> BasicStringStringDict;
29 typedef BASIC_DICT_CONTAINER<std::string, int> BasicStringIntDict;
31 typedef BASIC_DICT_CONTAINER<int, std::string> BasicIntStringDict;
33 typedef BASIC_DICT_CONTAINER<int, int> BasicIntIntDict;
35 typedef BASIC_DICT_CONTAINER<int, unsigned int> BasicIntUIntDict;
37 typedef BASIC_DICT_CONTAINER<int, bool> BasicIntBoolDict;
38}
39
40#endif /* INCLUDED_LIBCYBERRADIO_BASIC_DICT_H */
Defines functionality for LibCyberRadio applications.
Definition App.h:24
BASIC_DICT_CONTAINER< std::string, int > BasicStringIntDict
Type representing a dictionary of integers, keyed by string values.
Definition BasicDict.h:29
BASIC_DICT_CONTAINER< int, std::string > BasicIntStringDict
Type representing a dictionary of strings, keyed by integer values.
Definition BasicDict.h:31
BASIC_DICT_CONTAINER< std::string, std::string > BasicStringStringDict
Type representing a dictionary of strings, keyed by string values.
Definition BasicDict.h:27
BASIC_DICT_CONTAINER< int, unsigned int > BasicIntUIntDict
Type representing a dictionary of unsigned integers, keyed by integer values.
Definition BasicDict.h:35
BASIC_DICT_CONTAINER< int, int > BasicIntIntDict
Type representing a dictionary of integers, keyed by integer values.
Definition BasicDict.h:33
BASIC_DICT_CONTAINER< int, bool > BasicIntBoolDict
Type representing a dictionary of Boolean values, keyed by integers.
Definition BasicDict.h:37