|
FEDEM Solver
R8.0
Source code of the dynamics solver
|
Utilities for reading and writing of file tags. More...

Classes | |
| class | FFa_stream |
| Interface class for stream-based reading/writing of file tags. More... | |
| class | F_stream |
| Class for file stream based on standard IO. More... | |
Functions | |
| static int | FFaTag_error (const char *, int status) |
| Dummy function for silent runs. More... | |
| static int | FFaTag_checkEndian (short myEndian) |
| Checks the current system endian. More... | |
| int | FFa_endian () |
| Returns the current system endian. More... | |
| static int | FFaTag_read (FFa_stream &fs, std::string &tag, unsigned int &cs, int tagLength) |
| Reads the file tag and checksum from the provided file stream. More... | |
| int | FFaTag_write (FFa_stream &fs, const char *tag, int nchar, unsigned int cs, int tagLength) |
| Writes the file tag and checksum to the provided file stream. More... | |
| int | FFa_readTag (FT_FILE fd, char *tag, int nchar, unsigned int *cs) |
| Reads the file tag, endian field and checksum from a specified file. More... | |
| int | FFa_writeTag (FT_FILE fd, const char *tag, int nchar, unsigned int cs) |
| Writes the file tag, endian field and checksum to a specified file. More... | |
Variables | |
| static short | EndianField = 0x1234 |
| 16-bit value used to determine endian More... | |
| static unsigned char | EF1 = 0x12 |
| Little endian value. More... | |
| static unsigned char | EF2 = 0x34 |
| Big endian value. More... | |
Utilities for reading and writing of file tags.
| int FFa_endian | ( | ) |
Returns the current system endian.
| int FFa_readTag | ( | FT_FILE | fd, |
| char * | tag, | ||
| int | nchar, | ||
| unsigned int * | cs | ||
| ) |
Reads the file tag, endian field and checksum from a specified file.
| fd | File descriptor/pointer to the investigated file | |
| [out] | tag | File tag |
| [in] | nchar | Max number of characters in the tag string |
| [out] | cs | Checksum value |
| int FFa_writeTag | ( | FT_FILE | fd, |
| const char * | tag, | ||
| int | nchar, | ||
| unsigned int | cs | ||
| ) |
Writes the file tag, endian field and checksum to a specified file.
| fd | File descriptor/pointer to the written file | |
| [in] | tag | File tag |
| [in] | nchar | Number of characters in the tag string |
| [in] | cs | Checksum value |
|
static |
Checks the current system endian.
|
static |
Dummy function for silent runs.
|
static |
Reads the file tag and checksum from the provided file stream.
| fs | File stream to read from | |
| [out] | tag | File tag |
| [out] | cs | Checksum value |
| [in] | tagLength | Number of characters in the tag string on file |
| int FFaTag_write | ( | FFa_stream & | fs, |
| const char * | tag, | ||
| int | nchar, | ||
| unsigned int | cs, | ||
| int | tagLength | ||
| ) |
Writes the file tag and checksum to the provided file stream.
| fs | File stream to write to | |
| [in] | tag | File tag |
| [in] | nchar | Number of characters in the provided tag string |
| [in] | cs | Checksum value |
| [in] | tagLength | Number of characters in the tag string on file |
|
static |
Little endian value.
|
static |
Big endian value.
|
static |
16-bit value used to determine endian