Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WsResultItem.h
Go to the documentation of this file.
1 
14 #ifndef WS_RESULT_ITEM__
15 #define WS_RESULT_ITEM__
16 
18 
19 #include <iostream>
20 
27 class WsResultItem : public WsFileNode {
28 public:
29  WsResultItem(const path& fullPath, const path& rootPath , std::string body, std::string type, int size);
30 
31  ~WsResultItem();
32 
36  string getBody();
37 
41  string getType();
42 
43 private:
44  std::string m_type;
45  std::string m_body;
46 };
47 
48 #endif
Reprensents a File on disk.
Definition: WsFileNode.h:23
WsResultItem(const path &fullPath, const path &rootPath, std::string body, std::string type, int size)
Represents a Result of a search.
Definition: WsResultItem.h:27
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
std::string m_body
Definition: WsResultItem.h:45