pcce::SoundResourceFactory Class Reference

#include <SoundResourceFactory.h>

Inheritance diagram for pcce::SoundResourceFactory:

pcce::IResourceFactory

List of all members.

Public Member Functions

tIResourcePtr vCreateResource (const std::string name, const std::string resourceType)
tIResourcePtr vCreateResource (const XmlNode *node)


Detailed Description

Definition at line 39 of file SoundResourceFactory.h.


Member Function Documentation

tIResourcePtr pcce::SoundResourceFactory::vCreateResource ( const std::string  name,
const std::string  resourceType 
) [virtual]

tIResourcePtr SoundResourceFactory::vCreateResource ( const XmlNode node  )  [virtual]

Implements pcce::IResourceFactory.

Definition at line 50 of file SoundResourceFactory.cpp.

References pcce::Variant::AsString(), and pcce::XmlNode::GetAttribute().

00050                                                                        {
00051   string name, filename;
00052 
00053   name = node->GetAttribute("name").AsString();
00054   filename = node->GetAttribute("filename").AsString();
00055 
00056   tIResourcePtr resource(new SoundResource(name));
00057   static_pointer_cast<SoundResource>(resource)->SetFileName(filename);
00058 
00059   return resource;
00060 }


The documentation for this class was generated from the following files:

Generated on Thu Mar 6 11:39:28 2008 for Protocce by  doxygen 1.5.5