Wt examples  3.7.1
FileTreeTableNode.h
Go to the documentation of this file.
1 // This may look like C code, but it's really -*- C++ -*-
2 /*
3  * Copyright (C) 2008 Emweb bv, Herent, Belgium.
4  *
5  * See the LICENSE file for terms of use.
6  */
7 #ifndef FILETREETABLENODE_H_
8 #define FILETREETABLENODE_H_
9 
10 #include <Wt/WTreeTableNode>
11 
12 #include <boost/filesystem/path.hpp>
13 
18 
29 {
30 public:
33  FileTreeTableNode(const boost::filesystem::path& path);
34 
35 private:
37  boost::filesystem::path path_;
38 
40  virtual void populate();
41 
43  virtual bool expandable();
44 
46  static Wt::WIconPair *createIcon(const boost::filesystem::path& path);
47 };
48 
51 #endif // FILETREETABLENODE_H_
static Wt::WIconPair * createIcon(const boost::filesystem::path &path)
Create the iconpair for representing the path.
virtual void populate()
Reimplements WTreeNode::populate to read files within a directory.
virtual bool expandable()
Reimplements WTreeNode::expandable.
boost::filesystem::path path_
The path.
FileTreeTableNode(const boost::filesystem::path &path)
Construct a new node for the given file.
A single node in a file tree table.

Generated on Tue Dec 15 2020 for the C++ Web Toolkit (Wt) by doxygen 1.8.13