utils.cpp File Reference

#include "stdafx.h"
#include <libOOOggChef/utils.h>
#include <fstream>
#include <string>
#include <vector>

Include dependency graph for utils.cpp:

Include dependency graph

Go to the source code of this file.

Functions

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


Function Documentation

bool 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 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 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(), AnnodexRecomposer::recomposeStreamFrom(), and CMMLRecomposer::recomposeStreamFrom().

bool 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:10 2005 for oggdsf by  doxygen 1.3.9