VirtualMachine Disk Operating and System Methods
[VirtualMachine Related Documentations]


Detailed Description

Disk and system functions for VirtualMachine.


Functions

virtual bool VirtualMachine::FileRequester (const char *_pDisplayString, char *_pResultFileName, unsigned int _nameMaxLength)=0
 In edition mode, ask a file path to a file requester. the string format should vary, but will be compatible with LoadFile() and SaveFile().
virtual bool VirtualMachine::SaveFile (const char *_pFilePath, const char *_chunkToWrite, unsigned int _ChunkLength, bool _append=false)=0
 DEPRECATED for the moment: use class PackResource instead load a file into a memory chunk. You can load all in one row, or stream. memory is to be deleted by the CALLER with operator: "delete [] pointer", for each succesfull call. return 0L if failed. write a file from a memory chunk. You can save all in one row, or stream.
virtual void VirtualMachine::Sleep (unsigned int _milliseconds)=0
 in edition mode, redirection of machine task wait.


Function Documentation

virtual bool FileRequester const char *  _pDisplayString,
char *  _pResultFileName,
unsigned int  _nameMaxLength
[pure virtual, inherited]
 

In edition mode, ask a file path to a file requester. the string format should vary, but will be compatible with LoadFile() and SaveFile().

Parameters:
_pDisplayString a string to inform to what's the file for.
_pResultFileName the file path , returned.
_nameMaxLength the maximum buffer size to write.
Returns:
true if _pDisplayString valid.

Implemented in OGLMachineWinDxSound, and OGLMachineLinux.

virtual bool SaveFile const char *  _pFilePath,
const char *  _chunkToWrite,
unsigned int  _ChunkLength,
bool  _append = false
[pure virtual, inherited]
 

DEPRECATED for the moment: use class PackResource instead load a file into a memory chunk. You can load all in one row, or stream. memory is to be deleted by the CALLER with operator: "delete [] pointer", for each succesfull call. return 0L if failed. write a file from a memory chunk. You can save all in one row, or stream.

Parameters:
_pFilePath the path of the file to write
_chunkToWrite your memory chunk to save, as char *.
_ChunkLength the length of _chunkToWrite
_append if true, file is continued. if false, file is rewritten. default to false.
Returns:
true if OK, false if not.

Implemented in OGLMachineWinDxSound, and OGLMachineLinux.

virtual void Sleep unsigned int  _milliseconds  )  [pure virtual, inherited]
 

in edition mode, redirection of machine task wait.

Parameters:
_milliseconds time to wait.

Implemented in OGLMachineWinDxSound, and OGLMachineLinux.


      /\/\        4         N         k         !         N         D
                      _______  _ __ ___  _____            ___ _ _  ____
     ___________  __//___   /________  |/    / ___________\_______/    \
    /   _   _   \/   _     /    _   /      _/_/____/    _       __     /
   /    /   /       /     /    /    \      \/     /    /    \   \     /
  \\___/___/___/    ¯    _____/_____/       ______\___/_____/\________\\
               \________/_ ___ __ l____\      /elD!  
                 http://www.m4nkind.com \____/