1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #ifndef NL_ADD_ON_MANAGER_H
18 #define NL_ADD_ON_MANAGER_H
20 #include "nel/misc/types_nl.h"
21 #include "nel/misc/progress_callback.h"
24 // ***************************************************************************
27 * \author Lionel Berenguier
28 * \author Nevrax France
38 /** Parse File in rootPath, take only one that match posFilterList, and that don't match negFilterList
39 * eg: addSearchFiles("uiaddon", "*.xml;*.lua;*.tga", "login_*.xml;out_v2_*.xml");
41 void addSearchFiles(const std::string
&path
, const std::string
&posFilterList
, const std::string
&negFilterList
, NLMISC::IProgressCallback
*progressCallBack
= NULL
);
43 /** Get All files added in addSearchFiles, that match one filter in filterList
44 * eg: getFiles("*.xml;*.tga", vec);
45 * NB: only filenames are returned (eg clock.xml), not full path
47 void getFiles(const std::string
&filterList
, std::vector
<std::string
> &files
);
50 std::set
<std::string
> _FileSet
;
54 // ***************************************************************************
55 // Interface AddOnManager
56 extern CAddOnManager InterfaceAddOnManager
;
59 #endif // NL_ADD_ON_MANAGER_H
61 /* End of add_on_manager.h */