Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Alpha on July 29, 2014, 03:58:29 am

Title: class FileManager purpose
Post by: Alpha on July 29, 2014, 03:58:29 am
I am in the process of testing the addition of some file related functions, and am uncertain where I should add them.  Is FileManager supposed to handle only file loading/saving, or can I use it as a candidate location to work on?
Title: Re: class FileManager purpose
Post by: MortenMacFly on July 30, 2014, 07:03:55 am
Depends on what you've in mind. If you address a single file only yes. If you mean to address functions for files belonging to a project or with relevance to a project, "projectfile" might be a better candidate.
Title: Re: class FileManager purpose
Post by: Alpha on July 31, 2014, 01:27:12 am
I am attempting to see if I can speed up search/replace in files by pre-indexing files.  The files involved in indexing would (most likely) consist of project files, loose/recently opened files, and files in recently searched directories.  Within the index, it would not keep track of where the files came from.
Title: Re: class FileManager purpose
Post by: oBFusCATed on July 31, 2014, 01:45:47 am
Can you think about making this api reusable in the ThreadSearch plugin?
Title: Re: class FileManager purpose
Post by: Alpha on July 31, 2014, 01:59:25 am
Plugin friendly API is already in my plans :) .