xtd 0.2.0
selector.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "property_map.hpp"
6#include "../../object.hpp"
7
9namespace xtd {
10 namespace web {
11 namespace css {
12 class selector : public object {
13 public:
15
17 explicit selector(const xtd::string& name) : name_(name) {}
19
21 selector() = default;
22 selector(const selector&) = default;
23 selector& operator =(const selector&) = default;
25
27
29 const xtd::string& name() const noexcept {return name_;}
30 void name(const xtd::string& 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::string name_;
40 };
41 }
42 }
43}
object()=default
Create a new instance of the ultimate base class object.
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
Contains classes and interfaces that enable browser-server communication. This namespace includes the...
Definition css_reader.hpp:14
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::object class.
Contains xtd::web::css::property_map typedef.
std::map< xtd::string, xtd::web::css::property > property_map
Represents the map of a property name - property pair.
Definition property_map.hpp:13