Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WsResultItem.cpp
Go to the documentation of this file.
1 
11 #include "WsResultItem.h"
12 
13 WsResultItem::WsResultItem(const path& fullPath, const path& relPath, string body, string type, int size):
14  WsFileNode(fullPath, relPath),
15  m_body(body),
16  m_type(type)
17 {
18  WsFileNode::setSize(size);
19 }
20 
22 
24 {
25  return m_body;
26 }
28 {
29  return m_type;
30 }
Reprensents a File on disk.
Definition: WsFileNode.h:23
WsResultItem(const path &fullPath, const path &rootPath, std::string body, std::string type, int size)
std::string m_type
Definition: WsResultItem.h:44
string getType()
return the type of the node
string getBody()
return a short description of the node contents
void setSize(const uintmax_t &size)
sets the file size in the node. Typically called by WsFileSystemTree when building the FileSystemTree...
Definition: WsNode.cpp:170
std::string m_body
Definition: WsResultItem.h:45