NEURON
OcFile Class Reference

#include <ocfile.h>

Public Member Functions

 OcFile ()
 
virtual ~OcFile ()
 
bool open (const char *filename, const char *type)
 
void set_name (const char *s)
 
const char * get_name ()
 
const char * dir ()
 
void close ()
 
void print (const char *s)
 
FILE * file ()
 
bool is_open ()
 
bool eof ()
 
void flush ()
 
bool mktemp ()
 
bool unlink ()
 
void file_chooser_style (const char *type, const char *path, const char *banner=NULL, const char *filter=NULL, const char *accept=NULL, const char *cancel=NULL)
 
bool file_chooser_popup ()
 

Private Types

enum  { N , R , W , A }
 

Private Attributes

FileChooserfc_
 
std::string filename_
 
std::string dirname_
 
FILE * file_
 

Detailed Description

Definition at line 7 of file ocfile.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator

Definition at line 45 of file ocfile.h.

Constructor & Destructor Documentation

◆ OcFile()

OcFile::OcFile ( )

Definition at line 57 of file ocfile.cpp.

◆ ~OcFile()

OcFile::~OcFile ( )
virtual

Definition at line 65 of file ocfile.cpp.

Member Function Documentation

◆ close()

void OcFile::close ( )

Definition at line 307 of file ocfile.cpp.

◆ dir()

const char * OcFile::dir ( )

Definition at line 451 of file ocfile.cpp.

◆ eof()

bool OcFile::eof ( )

Definition at line 352 of file ocfile.cpp.

◆ file()

FILE * OcFile::file ( )

Definition at line 345 of file ocfile.cpp.

◆ file_chooser_popup()

bool OcFile::file_chooser_popup ( )

Definition at line 463 of file ocfile.cpp.

◆ file_chooser_style()

void OcFile::file_chooser_style ( const char *  type,
const char *  path,
const char *  banner = NULL,
const char *  filter = NULL,
const char *  accept = NULL,
const char *  cancel = NULL 
)

Definition at line 373 of file ocfile.cpp.

◆ flush()

void OcFile::flush ( )
inline

Definition at line 26 of file ocfile.h.

◆ get_name()

const char* OcFile::get_name ( )
inline

Definition at line 13 of file ocfile.h.

◆ is_open()

bool OcFile::is_open ( )
inline

Definition at line 22 of file ocfile.h.

◆ mktemp()

bool OcFile::mktemp ( )

Definition at line 358 of file ocfile.cpp.

◆ open()

bool OcFile::open ( const char *  filename,
const char *  type 
)

Definition at line 335 of file ocfile.cpp.

◆ print()

void OcFile::print ( const char *  s)
inline

Definition at line 18 of file ocfile.h.

◆ set_name()

void OcFile::set_name ( const char *  s)

Definition at line 313 of file ocfile.cpp.

◆ unlink()

bool OcFile::unlink ( )

Definition at line 368 of file ocfile.cpp.

Member Data Documentation

◆ dirname_

std::string OcFile::dirname_
private

Definition at line 50 of file ocfile.h.

◆ fc_

FileChooser* OcFile::fc_
private

Definition at line 44 of file ocfile.h.

◆ file_

FILE* OcFile::file_
private

Definition at line 51 of file ocfile.h.

◆ filename_

std::string OcFile::filename_
private

Definition at line 49 of file ocfile.h.


The documentation for this class was generated from the following files: