Zen
A cross-platform functional programming language

file Class Reference

Intrinsic file type. More...

#include <zbl.hpp>

List of all members.

Public Member Functions

 file ()
 Default constructor.
 file (const z::string &filename)
 Constructor.
 file (const file &src)
 Copy Constructor.
QFile & get ()
 Returns the stored value.
void setFileName (const z::string &filename)
 Set filename.
string getFileName () const
 Get file name.
bool open (int flags)
 Open the file.
void close ()
 Close the file.
bool isOpen () const
 Check if file is open.

Private Attributes

QFile _val
 The value.

Detailed Description

Intrinsic file type.


Constructor & Destructor Documentation

file ( const z::string filename) [inline, explicit]

Constructor.

Parameters:
filenameThe file name
file ( const file src) [inline]

Copy Constructor.

Parameters:
srcThe source instance

Member Function Documentation

QFile& get ( ) [inline]

Returns the stored value.

Returns:
The value
string getFileName ( ) const [inline]

Get file name.

Returns:
The file name
bool isOpen ( ) const [inline]

Check if file is open.

Returns:
True if open, else false
bool open ( int  flags) [inline]

Open the file.

Parameters:
flagsOpen flags
Returns:
True if success, else false
void setFileName ( const z::string filename) [inline]

Set filename.

Parameters:
filenameThe filename to set

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines