* obey naming convention

* hide unnecessary methods from public.
This commit is contained in:
성낙호 2013-09-06 16:10:11 +09:00
parent 200a1ec831
commit 95c6c66d58
2 changed files with 11 additions and 12 deletions

View File

@ -110,7 +110,7 @@ void AssetsManager::checkStoragePath()
} }
// Multiple key names // Multiple key names
static std::string key_with_hash( const char* prefix, const std::string& url ) static std::string keyWithHash( const char* prefix, const std::string& url )
{ {
char buf[256]; char buf[256];
sprintf(buf,"%s%zd",prefix,std::hash<std::string>()(url)); sprintf(buf,"%s%zd",prefix,std::hash<std::string>()(url));
@ -120,13 +120,13 @@ static std::string key_with_hash( const char* prefix, const std::string& url )
// hashed version // hashed version
std::string AssetsManager::keyOfVersion() const std::string AssetsManager::keyOfVersion() const
{ {
return key_with_hash(KEY_OF_VERSION,_packageUrl); return keyWithHash(KEY_OF_VERSION,_packageUrl);
} }
// hashed version // hashed version
std::string AssetsManager::keyOfDownloadedVersion() const std::string AssetsManager::keyOfDownloadedVersion() const
{ {
return key_with_hash(KEY_OF_DOWNLOADED_VERSION,_packageUrl); return keyWithHash(KEY_OF_DOWNLOADED_VERSION,_packageUrl);
} }
static size_t getVersionCode(void *ptr, size_t size, size_t nmemb, void *userdata) static size_t getVersionCode(void *ptr, size_t size, size_t nmemb, void *userdata)

View File

@ -147,15 +147,6 @@ public:
*/ */
friend int assetsManagerProgressFunc(void *, double, double, double, double); friend int assetsManagerProgressFunc(void *, double, double, double, double);
/** @brief Initializes storage path.
*/
void createStoragePath();
/** @brief Destroys storage path.
*/
void destroyStoragePath();
protected: protected:
bool downLoad(); bool downLoad();
void checkStoragePath(); void checkStoragePath();
@ -190,6 +181,14 @@ private:
std::mutex _messageQueueMutex; std::mutex _messageQueueMutex;
}; };
private:
/** @brief Initializes storage path.
*/
void createStoragePath();
/** @brief Destroys storage path.
*/
void destroyStoragePath();
private: private:
//! The path to store downloaded resources. //! The path to store downloaded resources.