data-io.cpp File Reference

#include <errno.h>
#include <string.h>
#include <sys/mman.h>
#include <qstring.h>
#include "symbol.h"
#include "array.h"
#include "array-iterator.h"
#include "data-token.h"
#include "null.h"
#include "data-string.h"
#include "data-io.h"
#include "version.h"

Include dependency graph for data-io.cpp:

Go to the source code of this file.

Defines

#define DUMPER(D)
#define ARRAY_TYPE(D, T)   if (D==dimension && strcmp(type,#T)==0) return read_array_internal<D,T>();
#define READ_INTERNAL(TYPE)

Functions

void yyset_in (FILE *i)
int yyparse ()
 READ_INTERNAL (signed1)
 READ_INTERNAL (signed2)
 READ_INTERNAL (signed4)
 READ_INTERNAL (signed8)
 READ_INTERNAL (unsigned1)
 READ_INTERNAL (unsigned2)
 READ_INTERNAL (unsigned4)
 READ_INTERNAL (unsigned8)
 READ_INTERNAL (float4)
 READ_INTERNAL (float8)

Variables

Data parse_result


Define Documentation

#define ARRAY_TYPE ( D,
 )     if (D==dimension && strcmp(type,#T)==0) return read_array_internal<D,T>();

#define DUMPER (  ) 

Value:

template <class T> \
void DataTexter::dumpSequence(Array<D,T> & array) \
{ \
  int mark = push("["); \
  int count = array.size(0); \
  for(ArrayIterator<D,T,true,D-1,false> submatrix(array,0) ; \
      submatrix.more() ; ++submatrix)                   \
    {\
        int lastline = get_line();\
        Array<D-1,T> &sub  = submatrix;\
        dumpSequence(sub);\
        if (submatrix[0]!=count-1)\
          {\
            if (D==2) padded("\n"); else padded(" ");\
            if (get_line() > lastline && !newline_waiting())\
              padded("\n");\
          }\
      }\
  pop(mark,"]");\
};

Definition at line 135 of file data-io.cpp.

#define READ_INTERNAL ( TYPE   ) 

Value:

void DataBinner::read_internal(TYPE &s) \
{\
  s = *(TYPE*)cur_ptr;\
  cur_ptr+=sizeof(TYPE);\
};

Definition at line 944 of file data-io.cpp.


Function Documentation

READ_INTERNAL ( float8   ) 

READ_INTERNAL ( float4   ) 

READ_INTERNAL ( unsigned8   ) 

READ_INTERNAL ( unsigned4   ) 

READ_INTERNAL ( unsigned2   ) 

READ_INTERNAL ( unsigned1   ) 

READ_INTERNAL ( signed8   ) 

READ_INTERNAL ( signed4   ) 

READ_INTERNAL ( signed2   ) 

READ_INTERNAL ( signed1   ) 

int yyparse (  ) 

Definition at line 1105 of file data-syntax.cpp.

Here is the call graph for this function:

void yyset_in ( FILE *  in_str  ) 

Set the input stream. This does not discard the current input buffer.

Parameters:
in_str A readable stream.
See also:
yy_switch_to_buffer

Definition at line 1879 of file data-lexer.cpp.

Here is the caller graph for this function:


Variable Documentation

Definition at line 91 of file data-syntax.cpp.


Generated on Sat Feb 20 19:04:26 2010 for Data Objects by  doxygen 1.5.9