Argument info
| 209 | |
| 210 | // Argument info |
| 211 | class Argument { |
| 212 | public: |
| 213 | Argument() {} |
| 214 | Argument(const std::string& name, |
| 215 | const Type& type, |
| 216 | const std::string& defaultValue) |
| 217 | : name_(name), type_(type), defaultValue_(defaultValue) |
| 218 | { |
| 219 | } |
| 220 | |
| 221 | bool empty() const { return type().empty(); } |
| 222 | |
| 223 | bool operator==(const Argument& other) const { // #nocov start |
| 224 | return name_ == other.name_ && |
| 225 | type_ == other.type_ && |
| 226 | defaultValue_ == other.defaultValue_; |
| 227 | }; // #nocov end |
| 228 | |
| 229 | bool operator!=(const Argument& other) const { |
| 230 | return !(*this == other); |
| 231 | }; |
| 232 | |
| 233 | |
| 234 | const std::string& name() const { return name_; } |
| 235 | const Type& type() const { return type_; } |
| 236 | const std::string& defaultValue() const { return defaultValue_; } |
| 237 | |
| 238 | private: |
| 239 | std::string name_; |
| 240 | Type type_; |
| 241 | std::string defaultValue_; |
| 242 | }; |
| 243 | |
| 244 | // Function info |
| 245 | class Function { |