{"id":272864,"date":"2016-01-25T23:16:02","date_gmt":"2016-01-25T20:16:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=272864"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=272864","title":{"rendered":"\u0414\u0438\u0430\u043b\u043e\u0433 \u0432\u044b\u0431\u043e\u0440\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430 Wt"},"content":{"rendered":"<p>       <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/d23\/b90\/c0a\/d23b90c0ac614c0c9ea577902b0e3dd2.png\"\/><br \/>  \u041f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0432\u043e\u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u043d\u0430 Wt: \u0432\u0438\u0437\u0430\u0440\u0434, \u0434\u0438\u0430\u043b\u043e\u0433 \u0432\u044b\u0431\u043e\u0440\u0430 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432 \u0438 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435. \u0420\u0435\u0448\u0438\u043b \u0432\u044b\u043b\u043e\u0436\u0438\u0442\u044c \u043d\u0430 <a href=\"https:\/\/github.com\/RPG-18\/WtComponents\">GitHub<\/a>, \u043c\u043e\u0436\u0435\u0442 \u043a\u043e\u043c\u0443-\u043d\u0438\u0431\u0443\u0434\u044c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f. \u041f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0434\u0438\u0430\u043b\u043e\u0433 \u0432\u044b\u0431\u043e\u0440\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430 Wt+Boost.<br \/>  <a name=\"habracut\"><\/a><br \/>  Wt \u0432\u0438\u0434\u0436\u0435\u0442-\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e API \u043f\u043e\u0445\u043e\u0436 \u043d\u0430 Qt. \u0422\u043e \u0447\u0442\u043e Wt \u00ab\u043f\u043e\u0445\u043e\u0436\u00bb \u043d\u0430 Qt, \u043d\u043e \u043d\u0435 Qt!<\/p>\n<h4><b>\u041c\u043e\u0434\u0435\u043b\u044c \u0434\u0430\u043d\u043d\u044b\u0445<\/b><\/h4>\n<p>  \u0412 \u043e\u0441\u043d\u043e\u0432\u0435 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0442\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c <a href=\"http:\/\/www.webtoolkit.eu\/wt\/doc\/reference\/html\/classWt_1_1WAbstractItemModel.html\">Wt::WAbstractItemModel<\/a>(\u043f\u043e\u0447\u0442\u0438 \u043a\u0430\u043a <a href=\"http:\/\/doc.qt.io\/qt-5\/qabstractitemmodel.html\">QAbstractItemModel<\/a>)  <\/p>\n<pre><code class=\"cpp\">class FileSystemModel: public Wt::WAbstractItemModel { public:      enum Roles     {         Name = Wt::UserRole + 1, Path = Wt::UserRole     };      FileSystemModel(Wt::WObject* parent = nullptr);      bool isFile(const Wt::WModelIndex& index) const;     bool isDir(const Wt::WModelIndex& index) const;      virtual int columnCount(const Wt::WModelIndex& parent =             Wt::WModelIndex()) const;      virtual int rowCount(const Wt::WModelIndex& parent =             Wt::WModelIndex()) const;      virtual Wt::WModelIndex parent(const Wt::WModelIndex& index) const;      virtual boost::any data(const Wt::WModelIndex& index, int role =             Wt::DisplayRole) const;      virtual Wt::WModelIndex index(int row, int column,             const Wt::WModelIndex& parent = Wt::WModelIndex()) const;      virtual boost::any headerData(int section, Orientation orientation =             Horizontal, int role = DisplayRole) const; private:      std::unique_ptr&lt;FileSystemModelPrivate&gt; m_impl; }; <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u0440\u0435\u0432\u043e\u0432\u0438\u0434\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0443\u0434\u043e\u0431\u043d\u043e \u0438\u043c\u0435\u0442\u044c \u0441\u0430\u043c\u043e \u0434\u0435\u0440\u0435\u0432\u043e. \u042d\u043b\u0435\u043c\u0435\u043d\u0442 \u0434\u0435\u0440\u0435\u0432\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 <b>TreeNode<\/b>  <\/p>\n<pre><code class=\"cpp\">struct TreeNode {     enum Type     {         File, Directory     };      std::string filename;     std::string path;     TreeNode* parent;     std::vector&lt;TreeNode*&gt; children;     Type type;     bool childrenLoaded;      TreeNode(TreeNode* prnt = nullptr) :             parent(prnt),             type(Directory),             childrenLoaded(false)     {         if (parent)         {             parent-&gt;children.push_back(this);         }     }      ~TreeNode()     {         parent = nullptr;         for (TreeNode* child : children)         {             delete child;         }         children.clear();     }      size_t loadChildren()     {         if (childrenLoaded)         {             return children.size();         }          boost::filesystem::path p(path);          childrenLoaded = true;         size_t count = 0;          try         {             for (directory_iterator iter(p), end; iter != end; ++iter)             {                 auto itm = new TreeNode(this);                 itm-&gt;filename = iter-&gt;path().filename().string();                 itm-&gt;path = iter-&gt;path().string();                 itm-&gt;type =                         is_directory(iter-&gt;path()) ?                                 TreeNode::Directory : TreeNode::File;                 ++count;             }              std::sort(children.begin(), children.end(),                     [](const TreeNode* a, const TreeNode* b)                     {                         return a-&gt;filename&lt;b-&gt;filename;                     });              return count;         } catch (const filesystem_error&)         {             return 0;         }     } }; <\/code><\/pre>\n<p>  \u041c\u0435\u0442\u043e\u0434 <b>loadChildren<\/b> \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442 \u0447\u0442\u0435\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438 \u043f\u043e\u0434\u0433\u0440\u0443\u0437\u043a\u0443 \u0443\u0437\u043b\u043e\u0432. \u0423\u0437\u043b\u044b \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0442\u044c\u0441\u044f \u043f\u043e \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044e, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u043e\u0433\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 \u0443 \u043c\u043e\u0434\u0435\u043b\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u044f\u0442 <i>rowCount<\/i>. \u041a\u043e\u0440\u0435\u043d\u044c \u0434\u0435\u0440\u0435\u0432\u0430 \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0435 <i>FileSystemModelPrivate<\/i>  <\/p>\n<pre><code class=\"cpp\">struct FileSystemModelPrivate {     FileSystemModelPrivate() :             root(new TreeNode)     {         root-&gt;filename = &quot;\/&quot;;         root-&gt;path = &quot;\/&quot;;     }      std::unique_ptr&lt;TreeNode&gt; root; }; <\/code><\/pre>\n<p>  \u0412 Wt \u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u043a \u0438 \u0432 Qt \u0435\u0441\u0442\u044c \u043c\u0435\u0442\u043e\u0434 <a href=\"http:\/\/www.webtoolkit.eu\/wt\/doc\/reference\/html\/classWt_1_1WAbstractItemModel.html#ac837a73fe423255035ffb076946de122\">createIndex<\/a> \u0441\u043e\u0437\u0434\u0430\u044e\u0449\u0438\u0439 \u043c\u043e\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0434\u0435\u043a\u0441(WModelIndex) \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 <i>TreeNode<\/i>.<br \/>  \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u0434 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442:  <\/p>\n<pre><code class=\"cpp\">FileSystemModel::FileSystemModel(WObject* parent) :         WAbstractItemModel(parent),         m_impl(new FileSystemModelPrivate) { }  int FileSystemModel::columnCount(const WModelIndex& parent) const {     return 1; }  int FileSystemModel::rowCount(const WModelIndex& parent) const {     if (parent.isValid())     {          TreeNode* node = static_cast&lt;TreeNode*&gt;(parent.internalPointer());         if (node == nullptr || node-&gt;type == TreeNode::File)         {             return 0;         }          return node-&gt;childrenLoaded ?                 node-&gt;children.size() : node-&gt;loadChildren();      }     else     {         \/\/Unix root '\/'         return 1;     }      return 0; }  WModelIndex FileSystemModel::parent(const WModelIndex& index) const {     if (!index.isValid())     {         return WModelIndex();     }      auto node = static_cast&lt;TreeNode*&gt;(index.internalPointer());     if (node-&gt;parent == nullptr)     {         return WModelIndex();     }      if (node-&gt;parent-&gt;parent == nullptr)     {         return createIndex(0, 0, m_impl-&gt;root.get());     }      const auto grand = node-&gt;parent-&gt;parent;     const auto parent = node-&gt;parent;      const auto res = std::lower_bound(grand-&gt;children.cbegin(),             grand-&gt;children.cend(), parent);      const size_t row = std::distance(grand-&gt;children.cbegin(), res);      return createIndex(row, 0, parent); }  boost::any FileSystemModel::data(const WModelIndex &index, int role) const {     if (!index.isValid())     {         return boost::any();     }      auto node = static_cast&lt;TreeNode*&gt;(index.internalPointer());     if (node == nullptr)     {         return boost::any();     }      switch (role)     {     case DisplayRole:     {         return node-&gt;filename;     }     case Path:     {         return node-&gt;path;     }     case DecorationRole:     {         try         {             return FILE_SYSTEM_ICONS.at(node-&gt;type);         } catch (...)         {              return boost::any();         }     }         break;     default:         return boost::any();     } }  WModelIndex FileSystemModel::index(int row, int column,         const Wt::WModelIndex& parent) const {     if (!parent.isValid())     {         return createIndex(0, 0, m_impl-&gt;root.get());     }     TreeNode* pNode = static_cast&lt;TreeNode*&gt;(parent.internalPointer());     if (pNode == nullptr)     {         return WModelIndex();     }      return createIndex(row, column, pNode-&gt;children[row]); } boost::any FileSystemModel::headerData(int section, Orientation orientation,         int role) const {     if (role == DisplayRole && orientation == Horizontal)     {         return &quot;File name&quot;;     }      return boost::any(); } <\/code><\/pre>\n<h4><b>\u0414\u0438\u0430\u043b\u043e\u0433 \u0432\u044b\u0431\u043e\u0440\u0430 \u0444\u0430\u0439\u043b\u043e\u0432<\/b><\/h4>\n<p>  \u0414\u0438\u0430\u043b\u043e\u0433 \u0432\u044b\u0431\u043e\u0440\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u0442\u0441\u044f \u043e\u0442 <a href=\"http:\/\/www.webtoolkit.eu\/wt\/doc\/reference\/html\/classWt_1_1WDialog.html\">Wt::WDialog<\/a> \u0438 \u0438\u043c\u0435\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441  <\/p>\n<pre><code class=\"cpp\">class FileDialog: public Wt::WDialog { public:      FileDialog(WObject* parent = nullptr);     virtual void accept();      Wt::WStringList selected() const;  private:      Wt::WTreeView* m_view;     FileSystemModel* m_fs; }; <\/code><\/pre>\n<p>  \u041a\u043b\u0430\u0441\u0441 FileDialog \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432 \u0441\u0435\u0431\u0435 \u043d\u0430\u0448\u0443 \u043c\u043e\u0434\u0435\u043b\u044c \u0438 \u0434\u0440\u0435\u0432\u043e\u0432\u0438\u0434\u043d\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 <a href=\"http:\/\/www.webtoolkit.eu\/wt\/doc\/reference\/html\/classWt_1_1WTreeView.html\">Wt::WTreeView<\/a>.<\/p>\n<p>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440  <\/p>\n<pre><code class=\"cpp\">FileDialog::FileDialog(WObject* parent) :         WDialog(parent),         m_view(new WTreeView()),         m_fs(new FileSystemModel(this))  {     setWindowTitle(&quot;Selecting files and directories&quot;);      auto cancel = new WPushButton(&quot;Cancel&quot;, footer());     cancel-&gt;clicked().connect(this, &WDialog::reject);      m_view-&gt;setModel(m_fs);     m_view-&gt;setSelectionBehavior(SelectItems);     m_view-&gt;setSelectionMode(ExtendedSelection);      auto select = new WPushButton(&quot;Select&quot;, footer());     select-&gt;clicked().connect(this, &FileDialog::accept);     m_view-&gt;setSortingEnabled(false);     m_view-&gt;setHeaderHeight(0);     m_view-&gt;expandToDepth(1);      auto layout = new WVBoxLayout;     layout-&gt;addWidget(m_view);     contents()-&gt;setLayout(layout);      resize(600, 500); } <\/code><\/pre>\n<p>  \u0412\u043d\u0443\u0442\u0440\u0438 \u0442\u0435\u043b\u0430 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0430 \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u0434\u0432\u0435 \u043a\u043d\u043e\u043f\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u044e\u0442\u0441\u044f \u0432 \u043d\u0438\u0436\u043d\u0435\u043c \u043a\u043e\u043b\u043e\u043d\u0442\u0438\u0442\u0443\u043b\u0435, \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 layout, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043c\u0435\u0441\u0442\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e. \u0412\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 layout \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u0432 <i>WTreeView<\/i>, \u0438\u043d\u0430\u0447\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0439\u0442\u0438 \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u044b \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0433\u043e \u043e\u043a\u043d\u0430.<\/p>\n<p>  \u041a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f   <\/p>\n<pre><code class=\"cpp\">cancel-&gt;clicked().connect(this, &WDialog::reject); <\/code><\/pre>\n<p>  \u044d\u0442\u043e \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0441\u0438\u0433\u043d\u0430\u043b\/\u0441\u043b\u043e\u0442\u043e\u0432 \u043d\u0430 \u0431\u0430\u0437\u0435 <b>Boost.Signals2<\/b>(\u0438\u043b\u0438 Boost.Signals, \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0432\u0435\u0440\u0441\u0438\u0438 Boost). \u0414\u0432\u0430 \u043e\u0441\u0442\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u044b  <\/p>\n<pre><code class=\"cpp\">void FileDialog::accept() {     const auto indxs = m_view-&gt;selectedIndexes();     if (indxs.size() &gt; 0)     {         WDialog::accept();     } }  Wt::WStringList FileDialog::selected() const {     WStringList list;     const auto indxs = m_view-&gt;selectedIndexes();     for (auto indx : indxs)     {         const WString pt = boost::any_cast&lt;std::string&gt;(                 indx.data(FileSystemModel::Path));         list &lt;&lt; pt;     }      return list; } <\/code><\/pre>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/275453\/\"> https:\/\/habrahabr.ru\/post\/275453\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/d23\/b90\/c0a\/d23b90c0ac614c0c9ea577902b0e3dd2.png\"\/><br \/>  \u041f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0432\u043e\u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u043d\u0430 Wt: \u0432\u0438\u0437\u0430\u0440\u0434, \u0434\u0438\u0430\u043b\u043e\u0433 \u0432\u044b\u0431\u043e\u0440\u0430 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432 \u0438 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435. \u0420\u0435\u0448\u0438\u043b \u0432\u044b\u043b\u043e\u0436\u0438\u0442\u044c \u043d\u0430 <a href=\"https:\/\/github.com\/RPG-18\/WtComponents\">GitHub<\/a>, \u043c\u043e\u0436\u0435\u0442 \u043a\u043e\u043c\u0443-\u043d\u0438\u0431\u0443\u0434\u044c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f. \u041f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0434\u0438\u0430\u043b\u043e\u0433 \u0432\u044b\u0431\u043e\u0440\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430 Wt+Boost.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-272864","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/272864","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=272864"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/272864\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=272864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=272864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=272864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}