Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Fusion::File Class Reference

File provides an interface to file access. More...

#include <FusionFile.h>

Inheritance diagram for Fusion::File:

Fusion::Object Fusion::IObject List of all members.

Public Member Functions

FUSION_EXPORT File ()
 DECLARE_CLASS (File, Object)
virtual FUSION_EXPORT int getIndex (lua_State *l)
FUSION_EXPORT bool read (double &v)
FUSION_EXPORT int32_t read (void *buf, uint32_t size)
FUSION_EXPORT int32_t write (const void *buf, uint32_t size)
FUSION_EXPORT int32_t write (const char *buf)
FUSION_EXPORT int32_t write (double d)
FUSION_EXPORT int32_t write (int32_t i)
FUSION_EXPORT bool open (const UTF8String &filename, const UTF8String &mode)
FUSION_EXPORT bool close ()
FUSION_EXPORT double seek (const UTF8String &whence, double offset)
FUSION_EXPORT bool setvbuf (const UTF8String &mode, double size)
FUSION_EXPORT void flush ()
FUSION_EXPORT UTF8String readline ()
FUSION_EXPORT bool isEOF () const
FUSION_EXPORT ResultType getError () const
FUSION_EXPORT DataStreamgetDataStream ()
FUSION_EXPORT const DataStreamgetDataStream () const
FUSION_EXPORT bool isNative () const
FUSION_EXPORT void * getSymbol (const UTF8String &name)
FUSION_EXPORT UTF8String getcwd ()

Static Public Member Functions

static int _open (Args &args)
static int _flush (Args &args)
static int _input (Args &args)
static int _output (Args &args)
static int _lines (Args &args)
static int _read (Args &args)
static int _write (Args &args)
static int _remove (Args &args)
static int _rename (Args &args)
static int _execute (Args &args)
static FUSION_EXPORT Objecttmpfile ()
static FUSION_EXPORT Value type (Object *obj)
static FUSION_EXPORT UTF8String getErrorString (ResultType code)
static FUSION_EXPORT UTF8String openFileDialog (const Value &filter)
static FUSION_EXPORT ResultType remove (const UTF8String &filename)
static FUSION_EXPORT ResultType rename (const UTF8String &oldname, const UTF8String &newname)
static FUSION_EXPORT ResultType execute (const UTF8String &cmd)

Protected Member Functions

virtual FUSION_EXPORT ~File ()

Static Protected Member Functions

static int _setDefaultFile (Args &args, const char *name, int32_t i, const UTF8String &mode)
static int _readFile (Args &args, File *f, int32_t first)

Detailed Description

File provides an interface to file access.

Remarks:
Base class none
Author:
Chris Marrin
Date:
3/17/2005


Constructor & Destructor Documentation

virtual FUSION_EXPORT Fusion::File::~File  )  [inline, protected, virtual]
 

FUSION_EXPORT Fusion::File::File  )  [inline]
 


Member Function Documentation

static int Fusion::File::_execute Args args  )  [static]
 

static int Fusion::File::_flush Args args  )  [static]
 

static int Fusion::File::_input Args args  )  [static]
 

static int Fusion::File::_lines Args args  )  [static]
 

static int Fusion::File::_open Args args  )  [static]
 

static int Fusion::File::_output Args args  )  [static]
 

static int Fusion::File::_read Args args  )  [static]
 

static int Fusion::File::_readFile Args args,
File f,
int32_t  first
[static, protected]
 

static int Fusion::File::_remove Args args  )  [static]
 

static int Fusion::File::_rename Args args  )  [static]
 

static int Fusion::File::_setDefaultFile Args args,
const char *  name,
int32_t  i,
const UTF8String mode
[static, protected]
 

static int Fusion::File::_write Args args  )  [static]
 

FUSION_EXPORT bool Fusion::File::close  ) 
 

Fusion::File::DECLARE_CLASS File  ,
Object 
 

static FUSION_EXPORT ResultType Fusion::File::execute const UTF8String cmd  )  [static]
 

FUSION_EXPORT void Fusion::File::flush  )  [inline]
 

FUSION_EXPORT UTF8String Fusion::File::getcwd  )  [inline]
 

FUSION_EXPORT const DataStream* Fusion::File::getDataStream  )  const [inline]
 

FUSION_EXPORT DataStream* Fusion::File::getDataStream  )  [inline]
 

FUSION_EXPORT ResultType Fusion::File::getError  )  const [inline]
 

static FUSION_EXPORT UTF8String Fusion::File::getErrorString ResultType  code  )  [static]
 

virtual FUSION_EXPORT int Fusion::File::getIndex lua_State *  l  )  [virtual]
 

Reimplemented from Fusion::Object.

FUSION_EXPORT void* Fusion::File::getSymbol const UTF8String name  ) 
 

FUSION_EXPORT bool Fusion::File::isEOF  )  const [inline]
 

FUSION_EXPORT bool Fusion::File::isNative  )  const [inline]
 

FUSION_EXPORT bool Fusion::File::open const UTF8String filename,
const UTF8String mode
 

static FUSION_EXPORT UTF8String Fusion::File::openFileDialog const Value filter  )  [static]
 

FUSION_EXPORT int32_t Fusion::File::read void *  buf,
uint32_t  size
[inline]
 

FUSION_EXPORT bool Fusion::File::read double &  v  )  [inline]
 

FUSION_EXPORT UTF8String Fusion::File::readline  ) 
 

static FUSION_EXPORT ResultType Fusion::File::remove const UTF8String filename  )  [static]
 

static FUSION_EXPORT ResultType Fusion::File::rename const UTF8String oldname,
const UTF8String newname
[static]
 

FUSION_EXPORT double Fusion::File::seek const UTF8String whence,
double  offset
 

FUSION_EXPORT bool Fusion::File::setvbuf const UTF8String mode,
double  size
 

static FUSION_EXPORT Object* Fusion::File::tmpfile  )  [static]
 

static FUSION_EXPORT Value Fusion::File::type Object obj  )  [static]
 

FUSION_EXPORT int32_t Fusion::File::write int32_t  i  )  [inline]
 

FUSION_EXPORT int32_t Fusion::File::write double  d  )  [inline]
 

FUSION_EXPORT int32_t Fusion::File::write const char *  buf  )  [inline]
 

FUSION_EXPORT int32_t Fusion::File::write const void *  buf,
uint32_t  size
[inline]
 


The documentation for this class was generated from the following file:
Generated on Sat Apr 1 06:08:33 2006 for Emma SDK Guide by  doxygen 1.4.3