Develop and Download Open Source Software

Browse CVS Repository

Diff of /malonnote/mnModel.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.31 by maloninc, Tue Jan 3 11:24:44 2006 UTC revision 1.32 by maloninc, Fri Oct 20 09:36:08 2006 UTC
# Line 109  bool mnModel::matchWithToken(wxString* f Line 109  bool mnModel::matchWithToken(wxString* f
109          return ans;          return ans;
110  }  }
111    
112    void mnModel::readAll( void )
113    {
114            int         i;
115            wxDir*      dir;
116            WikiData*   wikiData;
117        wxString*   fileName = new wxString();
118            char*       tokenList[MAX_TOKEN];
119    
120            memset(tokenList, 0, sizeof(char*)*MAX_TOKEN);
121            tokenList[0] = "";
122    
123            dir = new wxDir(*wikiDataDir);
124        if ( !dir->IsOpened() )
125        {
126                    MN_FATAL_ERROR(wxT("wxDir has faild\n"));
127            return ;
128        }
129    
130        bool cont = dir->GetFirst(fileName, wxT("*.txt"), wxDIR_FILES);
131            while(cont){
132    
133                    matchWithToken(fileName, tokenList); /* match with token list, but never match, just read. */
134    
135            cont = dir->GetNext(fileName);
136            }
137    
138            delete dir;
139            delete fileName;
140    }
141    
142  WikiList* mnModel::search(const char* searchStr)  WikiList* mnModel::search(const char* searchStr)
143  {  {
144          int         i;          int         i;

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26