本文整理汇总了C++中CCDictMaker类的典型用法代码示例。如果您正苦于以下问题:C++ CCDictMaker类的具体用法?C++ CCDictMaker怎么用?C++ CCDictMaker使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CCDictMaker类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: createCCArrayWithData
CCArray* createCCArrayWithData(unsigned char* data)
{
CCAssert((data),"data must not be NULL!!!");
CCDictMaker tMaker;
CCArray* array = tMaker.arrayWithData(data);
if (array != NULL)
{
array->autorelease();
}
CC_SAFE_DELETE_ARRAY(data);
return array;
}
示例2: createCCDictionaryWithData
CCDictionary* createCCDictionaryWithData(unsigned char* data)
{
CCAssert((data),"data must not be NULL!!!");
CCDictMaker tMaker;
CCDictionary* dict = tMaker.dictionaryWithData(data);
if (dict != NULL)
{
dict->autorelease();
}
CC_SAFE_DELETE_ARRAY(data);
return dict;
}
示例3: arrayWithContentsOfFileThreadSafe
CCArray* CCFileUtils::arrayWithContentsOfFileThreadSafe(const char* pFileName)
{
CCDictMaker tMaker;
return tMaker.arrayWithContentsOfFile(pFileName);
}
示例4:
CCDictionary *CCFileUtils::dictionaryWithContentsOfFileThreadSafe(const char *pFileName)
{
CCDictMaker tMaker;
return tMaker.dictionaryWithContentsOfFile(pFileName);
}
示例5:
CCDictionary<std::string, CCObject*> *CCFileUtils::dictionaryWithContentsOfFileThreadSafe(const char *pFileName)
{
CCDictMaker tMaker;
return tMaker.dictionaryWithContentsOfFile(pFileName);
}
示例6: fullPathForFilename
CCArray* CCFileUtils::createCCArrayWithContentsOfFile(const std::string& filename)
{
std::string fullPath = fullPathForFilename(filename.c_str());
CCDictMaker tMaker;
return tMaker.arrayWithContentsOfFile(fullPath.c_str());
}
示例7: createCCDictionaryWithContentsOfFile
CCDictionary* CCFileUtils::createCCDictionaryWithContentsOfFile(const std::string& filename)
{
CCDictMaker tMaker;
return tMaker.dictionaryWithContentsOfFile(filename.c_str());
}
示例8:
CCMutableArray<CCObject*>* CCFileUtils::arrayWithContentsOfFileThreadSafe(const char* pFileName)
{
CCDictMaker tMaker;
return tMaker.arrayWithContentsOfFile(pFileName);
}