// This source file is part of HGamer3D // (A project to enable 3D game development in Haskell) // For the latest info, see http://www.althainz.de/HGamer3D.html // // Copyright 2011 Dr. Peter Althainz // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // // ClassMemoryDataStream.h // // // // // File for type, method, enum or function stubs // in: "..\OgreSDK_vc10_v1-7-4\include\OGRE\OgreDataStream.h" // // each stub combines the following files: // a C++ implementation file, transforming cpp calls into C-functions // a C-header file, making this C-functions available for the C2HS parser // a chs file, give instructions to the C2HS parser. // // #include "wchar.h" #include "ClassPtr.h" #include "Utils.h" // original function: size_t readLine(char* buf, size_t maxCount, const String& delim); void cMds_readLine_c(struct hg3dclass_struct *classptr_c, char* buf_c, int maxCount_c, char * delim_c, int * result_c); // original function: size_t skipLine(const String& delim); void cMds_skipLine_c(struct hg3dclass_struct *classptr_c, char * delim_c, int * result_c); // original function: void skip(long count); void cMds_skip_c(struct hg3dclass_struct *classptr_c, int count_c); // original function: void seek(size_t pos); void cMds_seek_c(struct hg3dclass_struct *classptr_c, int pos_c); // original function: size_t tell(); void cMds_tell_c(struct hg3dclass_struct *classptr_c, int * result_c); // original function: bool eof(); void cMds_eof_c(struct hg3dclass_struct *classptr_c, int * result_c); // original function: void close(); void cMds_close_c(struct hg3dclass_struct *classptr_c); // original function: void setFreeOnClose(bool free); void cMds_setFreeOnClose_c(struct hg3dclass_struct *classptr_c, int free_c);