MCPcopy Create free account
hub / github.com/VROOM-Project/vroom / get_priority

Function get_priority

src/utils/input_parser.cpp:139–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139inline Priority get_priority(const rapidjson::Value& object) {
140 Priority priority = 0;
141 if (object.HasMember("priority")) {
142 if (!object["priority"].IsUint()) {
143 throw InputException("Invalid priority value.");
144 }
145 priority = object["priority"].GetUint();
146 }
147 return priority;
148}
149
150template <typename T>
151inline std::optional<T> get_value_for(const rapidjson::Value& object,

Callers 2

get_jobFunction · 0.85
parseFunction · 0.85

Calls 1

InputExceptionClass · 0.85

Tested by

no test coverage detected