1 #ifndef VPICDefinition_h 2 #define VPICDefinition_h 12 #define BUILD_SHARED_LIBS 15 #if defined(BUILD_SHARED_LIBS) 16 #if defined(VPIC_EXPORTS) 17 #define VPIC_EXPORT VTK_ABI_EXPORT 19 #define VPIC_EXPORT VTK_ABI_IMPORT 25 #define vpicNotUsed(x) 115 unsigned short* data,
116 unsigned long dataSize,
117 unsigned long dataCount,
124 unsigned long dataSize,
125 unsigned long dataCount,
132 unsigned long dataSize,
133 unsigned long dataCount,
140 unsigned long dataSize,
141 unsigned long dataCount,
145 int GCD(
int a,
int b);
148 template<
class outDataType >
149 inline void BinaryWrite(ostream& outStream,
const outDataType& outData)
152 reinterpret_cast<const char*>(&outData),
sizeof(outDataType));
156 template<
class inHolderType >
157 inline istream&
BinaryRead(istream& inStream, inHolderType& inHolder)
159 return inStream.read(
160 reinterpret_cast<char*>(&inHolder),
sizeof(inHolderType));
const int NUM_OF_NEIGHBORS
istream & BinaryRead(istream &inStream, inHolderType &inHolder)
const int TENSOR_DIMENSION
void readData(bool littleEndian, unsigned short *data, unsigned long dataSize, unsigned long dataCount, FILE *fp)
const int TENSOR9_DIMENSION
void BinaryWrite(ostream &outStream, const outDataType &outData)
string readString(FILE *filePtr, int size)