DNFileComments.cpp

Go to the documentation of this file.
00001 #include "stdafx.h"
00002 #include ".\DNFileComments.h"
00003 #using <mscorlib.dll>
00004 
00005 
00006 namespace illiminable {
00007         namespace Ogg {
00008                 namespace libVorbisCommentDotNET {
00009 
00010 DNFileComments::DNFileComments(void)
00011 {
00012         mNativeClass = new ::FileComments;
00013 }
00014 
00015 DNFileComments::~DNFileComments(void)
00016 {
00017         delete mNativeClass;
00018 }
00019 
00020 
00021 
00022 bool DNFileComments::loadFile(String* inFileName) {
00023         char* locCS = Wrappers::netStrToCStr(inFileName);
00024         string locStr = locCS;
00025         bool locRet = mNativeClass->loadFile(locStr);
00026         Wrappers::releaseCStr(locCS);
00027         return locRet;
00028 }
00029 String* DNFileComments::fileName() {
00030         return Wrappers::CStrToNetStr(mNativeClass->fileName().c_str());
00031 }
00032 
00033 bool DNFileComments::writeOutAll(String* inFileName) {
00034         char* locCS = Wrappers::netStrToCStr(inFileName);
00035         string locStr = locCS;
00036         bool locRet = mNativeClass->writeOutAll(locStr);
00037         Wrappers::releaseCStr(locCS);
00038         return locRet;
00039         
00040 }
00041 bool DNFileComments::writeOutStream(Int64 inIndex) {
00042         return mNativeClass->writeOutStream((unsigned long)inIndex);
00043 }
00044 
00045 //bool DNFileComments::addStreamComment(DNStreamCommentInfo* inStreamComment) {
00046 //
00047 //}
00048 DNStreamCommentInfo* DNFileComments::getStreamComment(Int64 inIndex) {
00049         return new illiminable::Ogg::libVorbisCommentDotNET::DNStreamCommentInfo(mNativeClass->getStreamComment((unsigned long)inIndex));
00050 }
00051 
00052 Int64 DNFileComments::streamCount() {
00053         return mNativeClass->streamCount();
00054 }
00055 
00056 
00057                 }}}

Generated on Tue Feb 15 14:54:21 2005 for oggdsf by  doxygen 1.3.9