Wt examples 3.3.12
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 bvba, Kessel-Lo, 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{
30public:
33 FileTreeTableNode(const boost::filesystem::path& path);
34
35private:
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_
A single node in a file tree table.
boost::filesystem::path path_
The path.
virtual void populate()
Reimplements WTreeNode::populate to read files within a directory.
virtual bool expandable()
Reimplements WTreeNode::expandable.
static Wt::WIconPair * createIcon(const boost::filesystem::path &path)
Create the iconpair for representing the path.

Generated on Fri May 17 2024 for the C++ Web Toolkit (Wt) by doxygen 1.9.8