#include <Wm4System.h>
Public Types | |
enum | { SM_READ, SM_WRITE, SM_READ_WRITE } |
Static Public Member Functions | |
static bool | Append (const char *acFilename, char *acBuffer, int iSize) |
static void | EndianCopy (int iSize, int iQuantity, const void *pvSrc, void *pvDst) |
static void | EndianCopy (int iSize, const void *pvSrc, void *pvDst) |
static int | Fclose (FILE *pkFile) |
static FILE * | Fopen (const char *acFilename, const char *acMode) |
static int | Fprintf (FILE *pkFile, const char *acFormat,...) |
static const char * | GetDirectory (int i) |
static int | GetDirectoryQuantity () |
static const char * | GetEnv (const char *acEnvVarName) |
static const char * | GetPath (const char *acFilename, int eMode) |
static const char * | GetPath (const char *acDirectory, const char *acFilename) |
static double | GetTime () |
static void | Initialize () |
static bool | InsertDirectory (const char *acDirectory) |
static bool | IsBigEndian () |
static bool | Load (const char *acFilename, char *&racBuffer, int &riSize) |
static unsigned int | MakeRGB (unsigned char ucR, unsigned char ucG, unsigned char ucB) |
static unsigned int | MakeRGBA (unsigned char ucR, unsigned char ucG, unsigned char ucB, unsigned char ucA) |
static void * | Memcpy (void *pvDst, size_t uiDstSize, const void *pvSrc, size_t uiSrcSize) |
static int | Read1 (FILE *pkFile, int iQuantity, void *pvData) |
static int | Read1 (const char *acBuffer, int iQuantity, void *pvData) |
static int | Read2be (FILE *pkFile, int iQuantity, void *pvData) |
static int | Read2be (const char *acBuffer, int iQuantity, void *pvData) |
static int | Read2le (FILE *pkFile, int iQuantity, void *pvData) |
static int | Read2le (const char *acBuffer, int iQuantity, void *pvData) |
static int | Read4be (FILE *pkFile, int iQuantity, void *pvData) |
static int | Read4be (const char *acBuffer, int iQuantity, void *pvData) |
static int | Read4le (FILE *pkFile, int iQuantity, void *pvData) |
static int | Read4le (const char *acBuffer, int iQuantity, void *pvData) |
static int | Read8be (FILE *pkFile, int iQuantity, void *pvData) |
static int | Read8be (const char *acBuffer, int iQuantity, void *pvData) |
static int | Read8le (FILE *pkFile, int iQuantity, void *pvData) |
static int | Read8le (const char *acBuffer, int iQuantity, void *pvData) |
static void | RemoveAllDirectories () |
static bool | RemoveDirectory (const char *acDirectory) |
static bool | Save (const char *acFilename, const char *acBuffer, int iSize) |
static int | Sprintf (char *acDst, size_t uiDstSize, const char *acFormat,...) |
static char * | Strcat (char *acDst, size_t uiDstSize, const char *acSrc) |
static char * | Strcpy (char *acDst, size_t uiDstSize, const char *acSrc) |
static char * | Strncpy (char *acDst, size_t uiDstSize, const char *acSrc, size_t uiSrcSize) |
static char * | Strtok (char *acToken, const char *acDelimiters, char *&racNextToken) |
static void | SwapBytes (int iSize, int iQuantity, void *pvValue) |
static void | SwapBytes (int iSize, void *pvValue) |
static void | Terminate () |
static int | Write1 (FILE *pkFile, int iQuantity, const void *pvData) |
static int | Write1 (char *acBuffer, int iQuantity, const void *pvData) |
static int | Write2be (FILE *pkFile, int iQuantity, const void *pvData) |
static int | Write2be (char *acBuffer, int iQuantity, const void *pvData) |
static int | Write2le (FILE *pkFile, int iQuantity, const void *pvData) |
static int | Write2le (char *acBuffer, int iQuantity, const void *pvData) |
static int | Write4be (FILE *pkFile, int iQuantity, const void *pvData) |
static int | Write4be (char *acBuffer, int iQuantity, const void *pvData) |
static int | Write4le (FILE *pkFile, int iQuantity, const void *pvData) |
static int | Write4le (char *acBuffer, int iQuantity, const void *pvData) |
static int | Write8be (FILE *pkFile, int iQuantity, const void *pvData) |
static int | Write8be (char *acBuffer, int iQuantity, const void *pvData) |
static int | Write8le (FILE *pkFile, int iQuantity, const void *pvData) |
static int | Write8le (char *acBuffer, int iQuantity, const void *pvData) |
Static Public Attributes | |
static char | WM4_PATH [SYSTEM_MAX_ENVVAR] |
Definition at line 55 of file Wm4System.h.
anonymous enum |
Definition at line 145 of file Wm4System.h.
bool System::Append | ( | const char * | acFilename, | |
char * | acBuffer, | |||
int | iSize | |||
) | [static] |
Definition at line 207 of file Wm4System.cpp.
void System::EndianCopy | ( | int | iSize, | |
int | iQuantity, | |||
const void * | pvSrc, | |||
void * | pvDst | |||
) | [static] |
Definition at line 94 of file Wm4System.cpp.
References Memcpy(), and SwapBytes().
void System::EndianCopy | ( | int | iSize, | |
const void * | pvSrc, | |||
void * | pvDst | |||
) | [static] |
Definition at line 85 of file Wm4System.cpp.
References Memcpy(), and SwapBytes().
int System::Fclose | ( | FILE * | pkFile | ) | [static] |
Definition at line 824 of file Wm4System.cpp.
Referenced by Append(), GetPath(), Load(), Wm4::Delaunay3< Real >::Load(), Wm4::Delaunay2< Real >::Load(), Wm4::Delaunay1< Real >::Load(), Save(), Wm4::Delaunay3< Real >::Save(), Wm4::Delaunay2< Real >::Save(), and Wm4::Delaunay1< Real >::Save().
FILE * System::Fopen | ( | const char * | acFilename, | |
const char * | acMode | |||
) | [static] |
Definition at line 786 of file Wm4System.cpp.
Referenced by Append(), GetPath(), Load(), Wm4::Delaunay3< Real >::Load(), Wm4::Delaunay2< Real >::Load(), Wm4::Delaunay1< Real >::Load(), Save(), Wm4::Delaunay3< Real >::Save(), Wm4::Delaunay2< Real >::Save(), and Wm4::Delaunay1< Real >::Save().
int System::Fprintf | ( | FILE * | pkFile, | |
const char * | acFormat, | |||
... | ||||
) | [static] |
Definition at line 804 of file Wm4System.cpp.
const char * System::GetDirectory | ( | int | i | ) | [static] |
Definition at line 664 of file Wm4System.cpp.
References Initialize().
int System::GetDirectoryQuantity | ( | ) | [static] |
Definition at line 654 of file Wm4System.cpp.
References Initialize().
const char * System::GetEnv | ( | const char * | acEnvVarName | ) | [static] |
const char * System::GetPath | ( | const char * | acFilename, | |
int | eMode | |||
) | [static] |
Definition at line 727 of file Wm4System.cpp.
References Fclose(), Fopen(), GetPath(), Initialize(), Py::int, SM_READ, and SM_WRITE.
const char * System::GetPath | ( | const char * | acDirectory, | |
const char * | acFilename | |||
) | [static] |
Definition at line 569 of file Wm4System.cpp.
References Strcat(), and Strcpy().
Referenced by GetPath().
double System::GetTime | ( | ) | [static] |
Definition at line 104 of file Wm4System.cpp.
References gs_bInitializedTime, gs_lInitialSec, gs_lInitialUSec, UnitParser::if(), and Py::long.
void System::Initialize | ( | ) | [static] |
Definition at line 632 of file Wm4System.cpp.
References GetEnv(), Strcpy(), WM4_NEW, and WM4_PATH.
Referenced by GetDirectory(), GetDirectoryQuantity(), GetPath(), InsertDirectory(), RemoveAllDirectories(), and RemoveDirectory().
bool System::InsertDirectory | ( | const char * | acDirectory | ) | [static] |
Definition at line 678 of file Wm4System.cpp.
References Initialize(), and Py::int.
bool System::IsBigEndian | ( | ) | [static] |
Definition at line 78 of file Wm4System.cpp.
bool System::Load | ( | const char * | acFilename, | |
char *& | racBuffer, | |||
int & | riSize | |||
) | [static] |
Definition at line 146 of file Wm4System.cpp.
References Fclose(), Fopen(), Py::int, WM4_DELETE, and WM4_NEW.
unsigned int System::MakeRGB | ( | unsigned char | ucR, | |
unsigned char | ucG, | |||
unsigned char | ucB | |||
) | [static] |
Definition at line 766 of file Wm4System.cpp.
unsigned int System::MakeRGBA | ( | unsigned char | ucR, | |
unsigned char | ucG, | |||
unsigned char | ucB, | |||
unsigned char | ucA | |||
) | [static] |
Definition at line 776 of file Wm4System.cpp.
void * System::Memcpy | ( | void * | pvDst, | |
size_t | uiDstSize, | |||
const void * | pvSrc, | |||
size_t | uiSrcSize | |||
) | [static] |
Definition at line 850 of file Wm4System.cpp.
Referenced by Wm4::PolynomialRoots< Real >::AllRealPartsNegative(), Wm4::PolynomialRoots< Real >::AllRealPartsPositive(), Wm4::Delaunay2< Real >::Delaunay2(), Wm4::Delaunay3< Real >::Delaunay3(), Wm4::Polynomial1< Real >::Divide(), EndianCopy(), Wm4::GVector< Real >::GVector(), Wm4::TInteger< N >::operator*(), Wm4::TInteger< N >::operator=(), Wm4::GVector< Real >::operator=(), Wm4::BandedMatrix< Real >::operator=(), Read1(), Read2be(), Read2le(), Read4be(), Read4le(), Read8be(), Read8le(), Wm4::GMatrix< Real >::SetMatrix(), Wm4::LinearSystem< Real >::Solve(), Wm4::LinearSystem< Real >::SolveBanded(), Wm4::LinearSystem< Real >::SolveSymmetricCG(), Wm4::TInteger< N >::TInteger(), MeshCore::DelaunayTriangulator::Triangulate(), Wm4::UniqueVerticesTriangles< N, Real >::UniqueVerticesTriangles(), Write1(), Write2be(), Write2le(), Write4be(), Write4le(), Write8be(), and Write8le().
int System::Read1 | ( | FILE * | pkFile, | |
int | iQuantity, | |||
void * | pvData | |||
) | [static] |
Definition at line 249 of file Wm4System.cpp.
int System::Read1 | ( | const char * | acBuffer, | |
int | iQuantity, | |||
void * | pvData | |||
) | [static] |
Definition at line 233 of file Wm4System.cpp.
References Memcpy().
int System::Read2be | ( | FILE * | pkFile, | |
int | iQuantity, | |||
void * | pvData | |||
) | [static] |
Definition at line 488 of file Wm4System.cpp.
References SwapBytes().
int System::Read2be | ( | const char * | acBuffer, | |
int | iQuantity, | |||
void * | pvData | |||
) | [static] |
Definition at line 416 of file Wm4System.cpp.
References Memcpy(), and SwapBytes().
int System::Read2le | ( | FILE * | pkFile, | |
int | iQuantity, | |||
void * | pvData | |||
) | [static] |
Definition at line 335 of file Wm4System.cpp.
References SwapBytes().
int System::Read2le | ( | const char * | acBuffer, | |
int | iQuantity, | |||
void * | pvData | |||
) | [static] |
Definition at line 263 of file Wm4System.cpp.
References Memcpy(), and SwapBytes().
int System::Read4be | ( | FILE * | pkFile, | |
int | iQuantity, | |||
void * | pvData | |||
) | [static] |
Definition at line 498 of file Wm4System.cpp.
References SwapBytes().
int System::Read4be | ( | const char * | acBuffer, | |
int | iQuantity, | |||
void * | pvData | |||
) | [static] |
Definition at line 428 of file Wm4System.cpp.
References Memcpy(), and SwapBytes().
int System::Read4le | ( | FILE * | pkFile, | |
int | iQuantity, | |||
void * | pvData | |||
) | [static] |
Definition at line 345 of file Wm4System.cpp.
References SwapBytes().
int System::Read4le | ( | const char * | acBuffer, | |
int | iQuantity, | |||
void * | pvData | |||
) | [static] |
Definition at line 275 of file Wm4System.cpp.
References Memcpy(), and SwapBytes().
Referenced by Wm4::Delaunay3< Real >::Load(), Wm4::Delaunay2< Real >::Load(), Wm4::Delaunay1< Real >::Load(), and Wm4::Delaunay< Real >::Load().
int System::Read8be | ( | FILE * | pkFile, | |
int | iQuantity, | |||
void * | pvData | |||
) | [static] |
Definition at line 508 of file Wm4System.cpp.
References SwapBytes().
int System::Read8be | ( | const char * | acBuffer, | |
int | iQuantity, | |||
void * | pvData | |||
) | [static] |
Definition at line 440 of file Wm4System.cpp.
References Memcpy(), and SwapBytes().
int System::Read8le | ( | FILE * | pkFile, | |
int | iQuantity, | |||
void * | pvData | |||
) | [static] |
Definition at line 355 of file Wm4System.cpp.
References SwapBytes().
int System::Read8le | ( | const char * | acBuffer, | |
int | iQuantity, | |||
void * | pvData | |||
) | [static] |
Definition at line 287 of file Wm4System.cpp.
References Memcpy(), and SwapBytes().
Referenced by Wm4::Delaunay3< Real >::Load(), Wm4::Delaunay2< Real >::Load(), and Wm4::Delaunay1< Real >::Load().
void System::RemoveAllDirectories | ( | ) | [static] |
Definition at line 717 of file Wm4System.cpp.
References Initialize().
bool System::RemoveDirectory | ( | const char * | acDirectory | ) | [static] |
Definition at line 697 of file Wm4System.cpp.
References Initialize().
bool System::Save | ( | const char * | acFilename, | |
const char * | acBuffer, | |||
int | iSize | |||
) | [static] |
Definition at line 181 of file Wm4System.cpp.
int System::Sprintf | ( | char * | acDst, | |
size_t | uiDstSize, | |||
const char * | acFormat, | |||
... | ||||
) | [static] |
Definition at line 882 of file Wm4System.cpp.
char * System::Strcat | ( | char * | acDst, | |
size_t | uiDstSize, | |||
const char * | acSrc | |||
) | [static] |
Definition at line 935 of file Wm4System.cpp.
Referenced by GetPath().
char * System::Strcpy | ( | char * | acDst, | |
size_t | uiDstSize, | |||
const char * | acSrc | |||
) | [static] |
Definition at line 902 of file Wm4System.cpp.
Referenced by GetEnv(), GetPath(), and Initialize().
char * System::Strncpy | ( | char * | acDst, | |
size_t | uiDstSize, | |||
const char * | acSrc, | |||
size_t | uiSrcSize | |||
) | [static] |
Definition at line 970 of file Wm4System.cpp.
char * System::Strtok | ( | char * | acToken, | |
const char * | acDelimiters, | |||
char *& | racNextToken | |||
) | [static] |
Definition at line 1002 of file Wm4System.cpp.
void System::SwapBytes | ( | int | iSize, | |
int | iQuantity, | |||
void * | pvValue | |||
) | [static] |
Definition at line 61 of file Wm4System.cpp.
void System::SwapBytes | ( | int | iSize, | |
void * | pvValue | |||
) | [static] |
Definition at line 47 of file Wm4System.cpp.
Referenced by EndianCopy(), Read2be(), Read2le(), Read4be(), Read4le(), Read8be(), Read8le(), Write2be(), Write2le(), Write4be(), Write4le(), Write8be(), and Write8le().
void System::Terminate | ( | ) | [static] |
Definition at line 648 of file Wm4System.cpp.
References WM4_DELETE.
int System::Write1 | ( | FILE * | pkFile, | |
int | iQuantity, | |||
const void * | pvData | |||
) | [static] |
Definition at line 256 of file Wm4System.cpp.
int System::Write1 | ( | char * | acBuffer, | |
int | iQuantity, | |||
const void * | pvData | |||
) | [static] |
Definition at line 241 of file Wm4System.cpp.
References Memcpy().
int System::Write2be | ( | FILE * | pkFile, | |
int | iQuantity, | |||
const void * | pvData | |||
) | [static] |
Definition at line 518 of file Wm4System.cpp.
References SwapBytes().
int System::Write2be | ( | char * | acBuffer, | |
int | iQuantity, | |||
const void * | pvData | |||
) | [static] |
Definition at line 452 of file Wm4System.cpp.
References Memcpy(), and SwapBytes().
int System::Write2le | ( | FILE * | pkFile, | |
int | iQuantity, | |||
const void * | pvData | |||
) | [static] |
Definition at line 365 of file Wm4System.cpp.
References SwapBytes().
int System::Write2le | ( | char * | acBuffer, | |
int | iQuantity, | |||
const void * | pvData | |||
) | [static] |
Definition at line 299 of file Wm4System.cpp.
References Memcpy(), and SwapBytes().
int System::Write4be | ( | FILE * | pkFile, | |
int | iQuantity, | |||
const void * | pvData | |||
) | [static] |
Definition at line 535 of file Wm4System.cpp.
References SwapBytes().
int System::Write4be | ( | char * | acBuffer, | |
int | iQuantity, | |||
const void * | pvData | |||
) | [static] |
Definition at line 464 of file Wm4System.cpp.
References Memcpy(), and SwapBytes().
int System::Write4le | ( | FILE * | pkFile, | |
int | iQuantity, | |||
const void * | pvData | |||
) | [static] |
Definition at line 382 of file Wm4System.cpp.
References SwapBytes().
int System::Write4le | ( | char * | acBuffer, | |
int | iQuantity, | |||
const void * | pvData | |||
) | [static] |
Definition at line 311 of file Wm4System.cpp.
References Memcpy(), and SwapBytes().
Referenced by Wm4::Delaunay3< Real >::Save(), Wm4::Delaunay2< Real >::Save(), Wm4::Delaunay1< Real >::Save(), and Wm4::Delaunay< Real >::Save().
int System::Write8be | ( | FILE * | pkFile, | |
int | iQuantity, | |||
const void * | pvData | |||
) | [static] |
Definition at line 552 of file Wm4System.cpp.
References SwapBytes().
int System::Write8be | ( | char * | acBuffer, | |
int | iQuantity, | |||
const void * | pvData | |||
) | [static] |
Definition at line 476 of file Wm4System.cpp.
References Memcpy(), and SwapBytes().
int System::Write8le | ( | FILE * | pkFile, | |
int | iQuantity, | |||
const void * | pvData | |||
) | [static] |
Definition at line 399 of file Wm4System.cpp.
References SwapBytes().
int System::Write8le | ( | char * | acBuffer, | |
int | iQuantity, | |||
const void * | pvData | |||
) | [static] |
Definition at line 323 of file Wm4System.cpp.
References Memcpy(), and SwapBytes().
Referenced by Wm4::Delaunay3< Real >::Save(), Wm4::Delaunay2< Real >::Save(), and Wm4::Delaunay1< Real >::Save().
char System::WM4_PATH [static] |
Definition at line 186 of file Wm4System.h.
Referenced by Initialize().