OGRE Wiki
Support and community documentation for Ogre3D
Ogre Forums
ogre3d.org
Log in
Username:
Password:
CapsLock is on.
Remember me (for 1 year)
Log in
Home
Tutorials
Tutorials Home
Basic Tutorials
Intermediate Tutorials
Mad Marx Tutorials
In Depth Tutorials
Older Tutorials
External Tutorials
Cookbook
Cookbook Home
CodeBank
Snippets
Experiences
Ogre Articles
Libraries
Libraries Home
Alternative Languages
Assembling A Toolset
Development Tools
OGRE Libraries
List of Libraries
Tools
Tools Home
DCC Tools
DCC Tutorials
DCC Articles
DCC Resources
Assembling a production pipeline
Development
Development Home
Roadmap
Building Ogre
Installing the Ogre SDK
Setting Up An Application
Ogre Wiki Tutorial Framework
Frequently Asked Questions
Google Summer Of Code
Help Requested
Ogre Core Articles
Community
Community Home
Projects Using Ogre
Recommended Reading
Contractors
Wiki
Immediate Wiki Tasklist
Wiki Ideas
Wiki Guidelines
Article Writing Guidelines
Wiki Styles
Wiki Page Tracker
Ogre Wiki Help
Ogre Wiki Help Overview
Help - Basic Syntax
Help - Images
Help - Pages and Structures
Help - Wiki Plugins
Toolbox
Freetags
Categories
List Pages
Structures
Trackers
Statistics
Rankings
List Galleries
Ogre Lexicon
Comments
History: OgreAndroidOgreADPArchive_h
View page
Source of version: 2
(current)
{CODE(wrap="1", colors="c++")}#ifndef __ADPArchive_H__ #define __ADPArchive_H__ #include <OgreArchive.h> #include <OgreArchiveFactory.h> namespace Ogre{ /// Provides access to the top-level adp files class ADPSource { public: virtual DataStreamPtr getPackage(const String &name) = 0; }; class ADPArchive : public Archive { private: struct ADPEntry{ String name; size_t offset, length; }; Ogre::list<ADPEntry>::type mEntries; Ogre::uint8 *mBuffer; size_t mBufferSize; ADPSource *mSource; public: ADPArchive(const String& name, const String& archType, ADPSource *source); ~ADPArchive(); /// @copydoc Archive::isCaseSensitive bool isCaseSensitive(void) const; /// @copydoc Archive::load void load(); /// @copydoc Archive::unload void unload(); /// @copydoc Archive::open DataStreamPtr open(const String& filename, bool readOnly = true) const; /// @copydoc Archive::create DataStreamPtr create(const String& filename) const; /// @copydoc Archive::delete void remove(const String& filename) const; /// @copydoc Archive::list StringVectorPtr list(bool recursive = true, bool dirs = false); /// @copydoc Archive::listFileInfo FileInfoListPtr listFileInfo(bool recursive = true, bool dirs = false); /// @copydoc Archive::find StringVectorPtr find(const String& pattern, bool recursive = true, bool dirs = false); /// @copydoc Archive::findFileInfo FileInfoListPtr findFileInfo(const String& pattern, bool recursive = true, bool dirs = false); /// @copydoc Archive::exists bool exists(const String& filename); /// @copydoc Archive::getModifiedTime time_t getModifiedTime(const String& filename); }; class ADPArchiveFactory : public ArchiveFactory { private: ADPSource *mSource; public: ADPArchiveFactory(ADPSource *source):mSource(source){} virtual ~ADPArchiveFactory() {} /// @copydoc FactoryObj::getType const String& getType(void) const; /// @copydoc FactoryObj::createInstance Archive *createInstance( const String& name ) { return OGRE_NEW ADPArchive(name, "ADP", mSource); } /// @copydoc FactoryObj::destroyInstance void destroyInstance( Archive* arch) { OGRE_DELETE arch; } }; } #endif{CODE}
Search by Tags
Search Wiki by Freetags
Latest Changes
FMOD SoundManager
HDRlib
Building Ogre V2 with CMake
Ogre 2.1 FAQ
Minimal Ogre Collision
Artifex Terra
OpenMB
Advanced Mogre Framework
MogreSocks
Critter AI
...more
Search
Find
Advanced
Search Help
Online Users
46 online users