utils.h File Reference

#include <libOOOggChef/libOOOggChef.h>
#include <string>
#include <vector>

Include dependency graph for utils.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Typedefs

typedef bool(* BufferWriter )(unsigned char *buffer, unsigned long bufferSize, void *userData)
 Often used by IRecomposer's subclasses' constructor, and elsewhere.

Functions

bool LIBOOOGGCHEF_API wantOnlyCMML (const vector< string > *inWantedMIMETypes)
 Check whether the user requested only CMML in the list of MIME types.
bool LIBOOOGGCHEF_API wantOnlyPacketBody (const vector< string > *inWantedMIMETypes)
 Check whether we should serve out only the packet bodies given the list of MIME types.
bool LIBOOOGGCHEF_API fileExists (const string inFilename)
 a.k.a. World's most stupid stat() function
bool LIBOOOGGCHEF_API sendFile (const string inFilename, BufferWriter inBufferWriter, void *inBufferWriterUserData)
 Push out the entire contents of file to the inBufferWriter function.


Typedef Documentation

typedef bool(* BufferWriter)(unsigned char *buffer, unsigned long bufferSize, void *userData)
 

Often used by IRecomposer's subclasses' constructor, and elsewhere.

Definition at line 46 of file utils.h.

Referenced by AnnodexRecomposer::AnnodexRecomposer(), CMMLRecomposer::CMMLRecomposer(), and sendFile().


Function Documentation

bool LIBOOOGGCHEF_API fileExists const string  inFilename  ) 
 

a.k.a. World's most stupid stat() function

Definition at line 51 of file utils.cpp.

Referenced by oggchef_handler(), and AnnodexRecomposer::recomposeStreamFrom().

bool LIBOOOGGCHEF_API sendFile const string  inFilename,
BufferWriter  inBufferWriter,
void *  inBufferWriterUserData
 

Push out the entire contents of file to the inBufferWriter function.

Definition at line 78 of file utils.cpp.

References BufferWriter.

Referenced by CMMLRecomposer::recomposeStreamFrom().

bool LIBOOOGGCHEF_API wantOnlyCMML const vector< string > *  inWantedMIMETypes  ) 
 

Check whether the user requested only CMML in the list of MIME types.

Definition at line 44 of file utils.cpp.

Referenced by oggchef_handler(), CMMLRecomposer::recomposeStreamFrom(), and AnnodexRecomposer::recomposeStreamFrom().

bool LIBOOOGGCHEF_API wantOnlyPacketBody const vector< string > *  inWantedMIMETypes  ) 
 

Check whether we should serve out only the packet bodies given the list of MIME types.

Definition at line 69 of file utils.cpp.

Referenced by AnnodexRecomposer::acceptOggPage().


Generated on Tue Feb 15 15:00:11 2005 for oggdsf by  doxygen 1.3.9