File: map_types.h

package info (click to toggle)
drbd-utils 9.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,388 kB
  • sloc: ansic: 43,698; xml: 15,968; cpp: 7,783; sh: 3,699; makefile: 1,353; perl: 353
file content (33 lines) | stat: -rw-r--r-- 898 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef MAP_TYPES_H
#define	MAP_TYPES_H

#include <string>
#include <cstdint>

// https://github.com/raltnoeder/cppdsaext
#include <QTree.h>
#include <VMap.h>

// Forward declarations required due to circular includes
// Do not remove
class DrbdResource;
class DrbdConnection;
class DrbdVolume;

// Map of resource names => DrbdResource objects
using ResourcesMap   = QTree<std::string, DrbdResource>;

// Map of connection names => DrbdConnection objects
using ConnectionsMap = QTree<std::string, DrbdConnection>;

// Map of volume number => DrbdVolume objects
using VolumesMap     = QTree<uint16_t, DrbdVolume>;

// Map of strings, key => value
// Used for the parameters listed in 'drbdsetup events2' lines
using PropsMap       = QTree<std::string, std::string>;

// Map of characters => function description
using HotkeysMap     = VMap<const char, const std::string>;

#endif	/* MAP_TYPES_H */