TRF Language Model
wb::Path Class Reference

Analize the path including "*" and "?" and "+" symbols. More...

#include <wb-win.h>

Public Member Functions

 Path (const char *path=NULL)
 
 ~Path ()
 
void Reset (const char *path=NULL)
 reset the path More...
 
bool GetPath (char *path)
 Get pathes. More...
 

Protected Attributes

string m_input
 stroe the input string More...
 
Queue< char * > * m_paFiles
 store all the files find in the queue More...
 

Detailed Description

Analize the path including "*" and "?" and "+" symbols.

Author
WangBin
Date
2016-05-05

The detial description: for example:
if the input path is d:*.txt+d:\?.bat,
frist, we split the string to 2 paths "d:\*.txt" and "d:\?.bat".
Then we find the corresponding files, i.e. all the "txt" file in "d:\"
and all the ".bat" files whose file name is only one character ("a.bat" or "b.bat").

Definition at line 140 of file wb-win.h.

Constructor & Destructor Documentation

§ Path()

wb::Path::Path ( const char *  path = NULL)

Definition at line 163 of file wb-win.cpp.

§ ~Path()

wb::Path::~Path ( )

Definition at line 167 of file wb-win.cpp.

Member Function Documentation

§ GetPath()

bool wb::Path::GetPath ( char *  path)

Get pathes.

Definition at line 189 of file wb-win.cpp.

§ Reset()

void wb::Path::Reset ( const char *  path = NULL)

reset the path

Definition at line 171 of file wb-win.cpp.

Member Data Documentation

§ m_input

string wb::Path::m_input
protected

stroe the input string

Definition at line 143 of file wb-win.h.

§ m_paFiles

Queue<char*>* wb::Path::m_paFiles
protected

store all the files find in the queue

Definition at line 144 of file wb-win.h.


The documentation for this class was generated from the following files: