Convert this to C++

Convert this to C++
0.0 0


Could somebody please convert this code into c++?
especially the part NSString and NSBundle part

- (CCAnimation *)animationFromPlist:(NSString *)animPlist delay:(float)delay {

    NSString *plistPath = [[NSBundle mainBundle] pathForResource:animPlist ofType:@"plist"]; // 1
    NSArray *animImages = [NSArray arrayWithContentsOfFile:plistPath]; // 2
    NSMutableArray *animFrames = [NSMutableArray array]; // 3
    for(NSString *animImage in animImages) { // 4
        [animFrames addObject:[[CCSpriteFrameCache sharedSpriteFrameCache] spriteFrameByName:animImage]]; // 5
    return [CCAnimation animationWithFrames:animFrames delay:delay]; // 6



You’re right. Translate NSBundle directly to c*+ is a mission impossible.
For 2 reasons:
# iOS SDK have no APIs to get bundle in C*+
# This call is special on iOS. In another word, it can not run on multi-plaforms.

But we have wrapped CCFileUtils to deal with NSBundle. So my suggestion is:
# Refer to CCFileUtils::fullPathFromRelativePath(const char*) in, I think you can find a method or hack it to fit your requirements
# What you need is something like CCDictionary<std::string, CCObject*>* CCFileUtils::dictionaryWithContentsOfFile(const char *pFileName)