Attribute parameter (with optional value)
| 287 | |
| 288 | // Attribute parameter (with optional value) |
| 289 | class Param { |
| 290 | public: |
| 291 | Param() {} |
| 292 | explicit Param(const std::string& paramText); |
| 293 | bool empty() const { return name().empty(); } |
| 294 | |
| 295 | bool operator==(const Param& other) const { // #nocov start |
| 296 | return name_ == other.name_ && |
| 297 | value_ == other.value_; |
| 298 | }; // #nocov end |
| 299 | |
| 300 | bool operator!=(const Param& other) const { |
| 301 | return !(*this == other); |
| 302 | }; |
| 303 | |
| 304 | |
| 305 | const std::string& name() const { return name_; } |
| 306 | const std::string& value() const { return value_; } // #nocov |
| 307 | |
| 308 | private: |
| 309 | std::string name_; |
| 310 | std::string value_; |
| 311 | }; |
| 312 | |
| 313 | // Attribute (w/ optional params and signature of function it qualifies) |
| 314 | class Attribute { |
no outgoing calls
no test coverage detected