Version: 8.3.0
HDFascii.cc File Reference
#include "HDFOI.hxx"
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <stdio.h>
#include <string>
Include dependency graph for HDFascii.cc:

Macros

#define dir_separator   '/'
 
#define MAX_STRING_SIZE   65535
 
#define MAX_ID_SIZE   20
 
#define NB_FLOAT_IN_ROW   3
 
#define NB_INTEGER_IN_ROW   9
 
#define ASCIIHDF_ID   "ASCIIHDF"
 
#define ATTRIBUTE_ID   "ATTRIBUTE"
 
#define DATASET_ID   "DATASET"
 
#define GROUP_ID   "GROUP"
 
#define ASCIIHDF_ID_END   "ASCIIHDF_END"
 
#define ATTRIBUTE_ID_END   "ATTRIBUTE_END"
 
#define DATASET_ID_END   "DATASET_END"
 
#define GROUP_ID_END   "GROUP_END"
 

Functions

void Move (const std::string &fName, const std::string &fNameDst)
 
bool Exists (const std::string thePath)
 
bool CreateAttributeFromASCII (HDFinternalObject *father, FILE *fp)
 
bool CreateDatasetFromASCII (HDFcontainerObject *father, FILE *fp)
 
bool CreateGroupFromASCII (HDFcontainerObject *father, FILE *fp)
 
void SaveAttributeInASCIIfile (HDFattribute *hdf_attribute, FILE *fp, int ident)
 
void SaveGroupInASCIIfile (HDFgroup *hdf_group, FILE *fp, int ident)
 
void SaveDatasetInASCIIfile (HDFdataset *hdf_dataset, FILE *fp, int ident)
 
std::string GetTmpDir ()
 
charmakeName (char *name)
 
charrestoreName (char *name)
 
void write_float64 (FILE *fp, hdf_float64 *value)
 
void read_float64 (FILE *fp, hdf_float64 *value)
 
void WriteSimpleData (FILE *fp, HDFdataset *hdf_dataset, hdf_type type, long size)
 

Macro Definition Documentation

#define ASCIIHDF_ID   "ASCIIHDF"
#define ASCIIHDF_ID_END   "ASCIIHDF_END"
#define ATTRIBUTE_ID_END   "ATTRIBUTE_END"
#define DATASET_ID   "DATASET"
#define DATASET_ID_END   "DATASET_END"
#define dir_separator   '/'

Referenced by GetTmpDir().

#define GROUP_ID   "GROUP"
#define GROUP_ID_END   "GROUP_END"
#define MAX_STRING_SIZE   65535
#define NB_FLOAT_IN_ROW   3

Referenced by WriteSimpleData().

#define NB_INTEGER_IN_ROW   9

Referenced by WriteSimpleData().

Function Documentation

bool Exists ( const std::string  thePath)
std::string GetTmpDir ( )

References dir_separator, and Exists().

Referenced by HDFascii::ConvertFromASCIIToHDF().

void Move ( const std::string &  fName,
const std::string &  fNameDst 
)
void read_float64 ( FILE *  fp,
hdf_float64 value 
)
void write_float64 ( FILE *  fp,
hdf_float64 value 
)
void WriteSimpleData ( FILE *  fp,
HDFdataset hdf_dataset,
hdf_type  type,
long  size 
)