26 lines
510 B
C++
26 lines
510 B
C++
|
|
#ifndef DRIVER_UTIL_HPP
|
|
#define DRIVER_UTIL_HPP
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include <map>
|
|
|
|
using UmmString = std::string;
|
|
template <typename T>
|
|
using UmmVector = std::vector<T>;
|
|
template <typename K, typename V, class C = std::less<K>>
|
|
using UmmMap = std::map<K, V, C>;
|
|
|
|
using UmmStringVec = UmmVector<UmmString>;
|
|
|
|
namespace drv {
|
|
|
|
void split_host_port(std::string_view target, UmmString &host, UmmString &port);
|
|
|
|
UmmStringVec parse_control_lst(std::string_view ctrl);
|
|
|
|
}
|
|
|
|
#endif // DRIVER_UTIL_HPP
|