|
@ -28,16 +28,20 @@ public: |
|
|
std::string_view path() const; |
|
|
std::string_view path() const; |
|
|
const std::vector<std::string_view>& arguments() const; |
|
|
const std::vector<std::string_view>& arguments() const; |
|
|
const std::vector<std::string_view>& switches() const; |
|
|
const std::vector<std::string_view>& switches() const; |
|
|
std::unordered_set<std::string_view> switches_set() const; |
|
|
const std::unordered_set<std::string_view>& switches_set() const; |
|
|
const std::unordered_map<std::string_view, std::string>& values() const; |
|
|
const std::unordered_map<std::string_view, std::string>& values() const; |
|
|
jessilib::object as_object() const; |
|
|
jessilib::object as_object() const; |
|
|
|
|
|
|
|
|
|
|
|
bool hasSwitch(std::string_view in_switch) const; |
|
|
|
|
|
std::string_view getValue(std::string_view in_key) const; |
|
|
|
|
|
|
|
|
operator jessilib::object() const { return as_object(); } |
|
|
operator jessilib::object() const { return as_object(); } |
|
|
|
|
|
|
|
|
private: |
|
|
private: |
|
|
std::string_view m_path; |
|
|
std::string_view m_path; |
|
|
std::vector<std::string_view> m_args; |
|
|
std::vector<std::string_view> m_args; |
|
|
std::vector<std::string_view> m_switches; |
|
|
std::vector<std::string_view> m_switches; |
|
|
|
|
|
std::unordered_set<std::string_view> m_switches_set; |
|
|
std::unordered_map<std::string_view, std::string> m_values; |
|
|
std::unordered_map<std::string_view, std::string> m_values; |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|