Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Ogre::HttpDataStream Class Reference

This is just a proxy from Ogre to the Emma http fetching classes. More...

#include <EmmaOgreHttp.h>

List of all members.

Public Member Functions

 HttpDataStream (const String &name, bool freeOnClose=true)
 Construct stream from an STL stream.
 ~HttpDataStream ()
 Construct named stream from an STL stream, and tell it the size.
size_t read (void *buf, size_t count)
size_t readLine (char *buf, size_t maxCount, const String &delim="\n")
size_t skipLine (const String &delim="\n")
void skip (long count)
void seek (size_t pos)
size_t tell (void) const
bool eof (void) const
void close (void)

Protected Attributes

Fusion::DataStreammypLocalDataStream
bool mFreeOnClose


Detailed Description

This is just a proxy from Ogre to the Emma http fetching classes.

Ogre calls this class when an asset has the type "http" and this calls the emma http classes to get the data


Constructor & Destructor Documentation

Ogre::HttpDataStream::HttpDataStream const String &  name,
bool  freeOnClose = true
 

Construct stream from an STL stream.

Parameters:
s Pointer to source stream
freeOnClose Whether to delete the underlying stream on destruction of this class

Ogre::HttpDataStream::~HttpDataStream  ) 
 

Construct named stream from an STL stream, and tell it the size.

Remarks:
This variant tells the class the size of the stream too, which means this class does not need to seek to the end of the stream to determine the size up-front. This can be beneficial if you have metadata about the contents of the stream already.
Parameters:
name The name to give this stream
s Pointer to source stream
size Size of the stream contents in bytes
freeOnClose Whether to delete the underlying stream on destruction of this class


Member Function Documentation

void Ogre::HttpDataStream::close void   ) 
 

bool Ogre::HttpDataStream::eof void   )  const
 

size_t Ogre::HttpDataStream::read void *  buf,
size_t  count
 

size_t Ogre::HttpDataStream::readLine char *  buf,
size_t  maxCount,
const String &  delim = "\n"
 

void Ogre::HttpDataStream::seek size_t  pos  ) 
 

void Ogre::HttpDataStream::skip long  count  ) 
 

size_t Ogre::HttpDataStream::skipLine const String &  delim = "\n"  ) 
 

size_t Ogre::HttpDataStream::tell void   )  const
 


Member Data Documentation

bool Ogre::HttpDataStream::mFreeOnClose [protected]
 

Fusion::DataStream* Ogre::HttpDataStream::mypLocalDataStream [protected]
 


The documentation for this class was generated from the following file:
Generated on Sat Apr 1 06:08:36 2006 for Emma SDK Guide by  doxygen 1.4.3