#include <opennurbs_file_utilities.h>
Static Public Member Functions | |
static int | Close (FILE *fp) |
Portable wrapper for C runtime fclose(). More... | |
static ON__INT64 | CurrentPosition (FILE *fp) |
Portable wrapper for C runtime ftell(). More... | |
static bool | Flush (FILE *fp) |
Portable wrapper for C runtime fflush(fp). More... | |
static bool | GetFileInformation (FILE *fp, ON__UINT64 *file_size, ON__UINT64 *file_metadata_last_modified_time, ON__UINT64 *file_contents_last_modified_time) |
Portable wrapper for C runtime fstat(). More... | |
static bool | GetFileInformation (const wchar_t *file_name, ON__UINT64 *file_size, ON__UINT64 *file_metadata_last_modified_time, ON__UINT64 *file_contents_last_modified_time) |
static bool | GetFileInformation (const char *file_name, ON__UINT64 *file_size, ON__UINT64 *file_metadata_last_modified_time, ON__UINT64 *file_contents_last_modified_time) |
static bool | Is3dmFile (const wchar_t *file_path, bool bAllow3dmbakExtension) |
static bool | Is3dmFile (const char *file_path, bool bAllow3dmbakExtension) |
static FILE * | Open (const wchar_t *filename, const wchar_t *mode) |
Portable wrapper for C runtime fopen(). More... | |
static FILE * | Open (const char *filename, const char *mode) |
Portable wrapper for C runtime fopen(). More... | |
static FILE * | Open3dmToRead (const wchar_t *file_path) |
Open the file and seek to the location where the 3dm archive information begins. More... | |
static FILE * | Open3dmToRead (const char *file_path) |
Open the file and seek to the location where the 3dm archive information begins. More... | |
static ON__UINT64 | Read (FILE *fp, ON__UINT64 count, void *buffer) |
Portable wrapper for C runtime fread(buffer,1,count,fp). More... | |
static bool | Seek (FILE *fp, ON__INT64 offset, int orgin) |
Portable wrapper for C runtime fseek(fp,offset,origin). More... | |
static bool | SeekFromCurrentPosition (FILE *fp, ON__INT64 offset) |
Portable wrapper for C runtime fseek(fp,offset,SEEK_CUR). More... | |
static bool | SeekFromEnd (FILE *fp, ON__INT64 offset) |
Portable wrapper for C runtime fseek(fp,offset,SEEK_END). More... | |
static bool | SeekFromStart (FILE *fp, ON__INT64 offset) |
Portable wrapper for C runtime fseek(fp,offset,SEEK_SET). More... | |
static ON__UINT64 | Write (FILE *fp, ON__UINT64 count, const void *buffer) |
Portable wrapper for C runtime fwrite(buffer,1,count,fp). More... | |
|
static |
Portable wrapper for C runtime fclose().
fp | [in] FILE pointer returned by ON_FileStream::Open(). |
|
static |
Portable wrapper for C runtime ftell().
fp | [in] FILE pointer returned by ON_FileStream::Open(). |
|
static |
Portable wrapper for C runtime fflush(fp).
fp | [in] FILE pointer returned by ON_FileStream::Open(). |
|
static |
Portable wrapper for C runtime fstat().
fp | [in] FILE pointer returned by ON_FileStream::Open(). |
file_size | [out] If file_size is not null, the the size of the file in bytes returned here |
file_metadata_last_modified_time | [out] If file_metadata_last_modified_time is not null, then the time the file's metadata (owner, permissions, ...) were last modified is returned here as the number of seconds since midnight January 1, 1970. |
file_contents_last_modified_time | [out] If file_contents_last_modified_time is not null, then the time the file's contents were last modified is returned here as the number of seconds since midnight January 1, 1970. |
|
static |
|
static |
|
static |
|
static |
|
static |
Portable wrapper for C runtime fopen().
filename | [in] |
mode | [in] |
Use the ON_FileStream static functions for reading, writing, seeking, position finding with the FILE pointer returned by this function.
|
static |
Portable wrapper for C runtime fopen().
filename | [in] |
mode | [in] |
Use the ON_FileStream static functions for reading, writing, seeking, position finding with the FILE pointer returned by this function.
|
static |
Open the file and seek to the location where the 3dm archive information begins.
|
static |
Open the file and seek to the location where the 3dm archive information begins.
|
static |
Portable wrapper for C runtime fread(buffer,1,count,fp).
fp | [in] FILE pointer returned by ON_FileStream::Open() |
count | [in] number of bytes to read. |
buffer | [out] read bytes are stored in this buffer |
|
static |
Portable wrapper for C runtime fseek(fp,offset,origin).
fp | [in] FILE pointer returned by ON_FileStream::Open(). |
offset | [in] |
origin | [in] SEEK_SET (0): seek from beginning of file. SEEK_CUR (1): seek from current position of file pointer. SEEK_END (2): seek from end of file. |
|
static |
Portable wrapper for C runtime fseek(fp,offset,SEEK_CUR).
fp | [in] FILE pointer returned by ON_FileStream::Open(). |
offset | [in] |
|
static |
Portable wrapper for C runtime fseek(fp,offset,SEEK_END).
fp | [in] FILE pointer returned by ON_FileStream::Open(). |
offset | [in] |
|
static |
Portable wrapper for C runtime fseek(fp,offset,SEEK_SET).
fp | [in] FILE pointer returned by ON_FileStream::Open(). |
offset | [in] |
|
static |
Portable wrapper for C runtime fwrite(buffer,1,count,fp).
fp | [in] FILE pointer returned by ON_FileStream::Open() |
count | [in] number of bytes to write |
buffer | [in] data to be written |