43 fn->
getPath().extension().string() ==
".fhtml" ||
44 fn->
getPath().extension().string() ==
".pdf" ||
45 fn->
getPath().extension().string() ==
".rpg" ||
46 fn->
getPath().extension().string() ==
".zip"
49 boost::filesystem::path wsRes = fn->
getPath();
51 while (wsRes.string() !=
"/") {
52 wsRes = wsRes.parent_path();
53 if ( wsRes.filename().string() ==
"ws.res" ) {
57 if ( wsRes.filename().string() ==
"ws" ) {
71 vector<NodePtr>::iterator it;
boost::shared_ptr< WsAbstractNode > NodePtr
vector< NodePtr > getLatestNews(int nb)
int endTraverseDir(NodePtr n)
Called when a directory has been completely traversed. ie all subnodes(recursively all sub nodes of s...
Reprensents a File on disk.
Used to traverse the tree.
NodePropertiesPtr getProperties()
get the properties of the node If the properties are not set (no conf found, or node retrieved from s...
int start()
start traversing the Tree.
const path & getPath()
returns the relative path of the node
int traverseFile(NodePtr n)
Called when traversing a fileNode.
int beginTraverseDir(NodePtr n)
Called when a directory is being traversed.
const string getPublishDate()
returns the publish date of the file