xtd 0.2.0
selector.h
Go to the documentation of this file.
1 #pragma once
5 #include "property_map.h"
6 #include "../../object.h"
7 
9 namespace xtd {
10  namespace web {
11  namespace css {
12  class selector : public object {
13  public:
15 
17  explicit selector(const xtd::ustring& name) : name_(name) {}
19 
21  selector() = default;
22  selector(const selector&) = default;
23  selector& operator =(const selector&) = default;
25 
27 
29  const xtd::ustring& name() const noexcept {return name_;}
30  void name(const xtd::ustring& name) noexcept {name_ = name;}
31 
32  const xtd::web::css::property_map& properties() const noexcept {return properties_;}
33  void properties(const xtd::web::css::property_map& properties) noexcept {properties_ = properties;}
34  xtd::web::css::property_map& properties() noexcept {return properties_;}
36 
37  private:
38  xtd::ustring name_;
39  xtd::web::css::property_map properties_;
40  };
41  }
42  }
43 }
Contains xtd::web::css::property_map typedef.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
std::map< xtd::ustring, xtd::web::css::property > property_map
Represents the map of a property name - property pair.
Definition: property_map.h:13
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
Definition: selector.h:12