18 #include <boost/filesystem/path.hpp>
19 #include <boost/filesystem/operations.hpp>
22 using namespace kome::core;
27 #define new new( _NORMAL_BLOCK, __FILE__, __LINE__ )
28 #define malloc( s ) _malloc_dbg( s, _NORMAL_BLOCK, __FILE__, __LINE__ )
67 if( path ==
NULL || n.empty() ) {
72 boost::filesystem::path p( path, boost::filesystem::native );
73 boost::filesystem::directory_iterator end;
76 if( !boost::filesystem::exists( p ) ) {
81 if( boost::filesystem::is_directory( p ) ) {
82 for( boost::filesystem::directory_iterator it( p ); it != end && res.empty(); it++ ) {
83 boost::filesystem::path child = boost::filesystem::absolute( *it );
88 std::string absPath = boost::filesystem::absolute( p ).string();
95 if( fileName.find( n ) != fileName.npos
96 && ( m.empty() || fileDir.find( m ) != fileDir.npos )
97 && ( e.empty() || fileExt.compare( e ) == 0 ) ) {
std::string getfilename(const char *path)
get file name
static MsppManager & getInstance()
gets MsppManager object (This is the only object.)
ResourceBundle()
constructor
std::string tolowercase(const char *s)
convert all of the characters in the string given to lower case
implements of MsppManager class
static ResourceBundle & getInstance()
gets resource bundle object (This is the only object)
interfarces of ResourceBundle class
std::string getdir(const char *path)
get dir that the file exists
std::string getplugindir()
gets mspp plugin paths
std::string searchResource(const char *name, const char *module, const char *ext)
searches resource file
std::string getext(const char *path)
get the extension of the file
virtual ~ResourceBundle()
destructor