AUXFile Class Reference

#include <organizer.h>

Inheritance diagram for AUXFile:

AVGCNFile CNFile CNFile LAMMPSFile MDCASKconFile MDCASKinputFile POSCARFile PropFile PropFile

List of all members.

Public Types

enum  { ENTRIES, BLOCK, SERIES }

Public Member Functions

virtual int writeentry (void *)
virtual int writeblock (void *)
virtual int readblock (void *)
virtual char * describe ()
 AUXFile (int t)
virtual ~AUXFile ()
int close (int zip=0, bool bg=true)
int open (char *name, int format=LFile::O_WriteNew)
int reopen ()
int write (void *p, int zip=1, bool bg=true)
int read (void *p)
void setcount (int n)

Static Public Member Functions

static const char * Skip (const char *str, const char *blank)
static const char * SkipBlanks (const char *str)
static void insertindex (char *ext, char *n, int c)

Public Attributes

LFilef
int type
int count
char fname [1000]
char zipname [1000]
char extname [1000]

Static Private Member Functions

static int lastoccur (char *n, char c)


Detailed Description

Definition at line 29 of file organizer.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
ENTRIES 
BLOCK 
SERIES 

Definition at line 38 of file organizer.h.


Constructor & Destructor Documentation

AUXFile::AUXFile ( int  t  )  [inline]

Definition at line 39 of file organizer.h.

virtual AUXFile::~AUXFile (  )  [inline, virtual]

Definition at line 40 of file organizer.h.

References close().


Member Function Documentation

int AUXFile::close ( int  zip = 0,
bool  bg = true 
)

Definition at line 17 of file organizer.cpp.

References LFile::BZipFile(), LFile::Close(), DUMP, ENTRIES, extname, f, fname, LFile::GZipFile(), SERIES, and type.

Referenced by ~AUXFile().

virtual char* AUXFile::describe (  )  [inline, virtual]

Reimplemented in CNFile, PropFile, CNFile, POSCARFile, LAMMPSFile, MDCASKconFile, MDCASKinputFile, and PropFile.

Definition at line 36 of file organizer.h.

Referenced by open(), and reopen().

void AUXFile::insertindex ( char *  ext,
char *  n,
int  c 
) [static]

Definition at line 176 of file organizer.cpp.

References lastoccur().

Referenced by open(), and write().

int AUXFile::lastoccur ( char *  n,
char  c 
) [static, private]

Definition at line 165 of file organizer.cpp.

Referenced by insertindex().

int AUXFile::open ( char *  name,
int  format = LFile::O_WriteNew 
)

int AUXFile::read ( void *  p  ) 

Definition at line 146 of file organizer.cpp.

References BLOCK, LFile::Close(), f, fname, HIM, NOR, NULL, readblock(), and type.

virtual int AUXFile::readblock ( void *   )  [inline, virtual]

Reimplemented in CNFile, CNFile, POSCARFile, LAMMPSFile, AVGCNFile, MDCASKconFile, and MDCASKinputFile.

Definition at line 35 of file organizer.h.

Referenced by read().

int AUXFile::reopen (  ) 

Definition at line 83 of file organizer.cpp.

References LFile::Close(), describe(), extname, f, HIM, NOR, NULL, LFile::O_WriteNew, and LFile::Open().

Referenced by write().

void AUXFile::setcount ( int  n  )  [inline]

Definition at line 57 of file organizer.h.

References count.

static const char* AUXFile::Skip ( const char *  str,
const char *  blank 
) [inline, static]

Definition at line 46 of file organizer.h.

References ASSERT, and NULL.

Referenced by SkipBlanks().

static const char* AUXFile::SkipBlanks ( const char *  str  )  [inline, static]

Definition at line 54 of file organizer.h.

References Skip().

int AUXFile::write ( void *  p,
int  zip = 1,
bool  bg = true 
)

virtual int AUXFile::writeblock ( void *   )  [inline, virtual]

Reimplemented in CNFile, CNFile, POSCARFile, LAMMPSFile, AVGCNFile, MDCASKconFile, and MDCASKinputFile.

Definition at line 34 of file organizer.h.

Referenced by write().

virtual int AUXFile::writeentry ( void *   )  [inline, virtual]

Reimplemented in PropFile, and PropFile.

Definition at line 33 of file organizer.h.

Referenced by write().


Member Data Documentation

Definition at line 32 of file organizer.h.

Referenced by open(), setcount(), and write().

char AUXFile::extname[1000]

Definition at line 32 of file organizer.h.

Referenced by close(), open(), reopen(), and write().

Definition at line 32 of file organizer.h.

Referenced by close(), open(), read(), reopen(), and write().

char AUXFile::fname[1000]

Definition at line 32 of file organizer.h.

Referenced by close(), open(), read(), and write().

Definition at line 32 of file organizer.h.

Referenced by close(), open(), read(), and write().

char AUXFile::zipname[1000]

Definition at line 32 of file organizer.h.

Referenced by open().


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

Generated on Tue Oct 28 15:21:17 2008 for MD++ by  doxygen 1.5.7.1