|
Open3D (C++ API)
0.11.0
|
#include <FileSystem.h>
Public Member Functions | |
| ~CFile () | |
| bool | Open (const std::string &filename, const std::string &mode) |
| std::string | GetError () |
| return last encountered error for this file More... | |
| void | Close () |
| int64_t | CurPos () |
| return current position in the file (ftell) More... | |
| int64_t | GetFileSize () |
| const char * | ReadLine () |
| template<class T > | |
| size_t | ReadData (T *data, size_t num_elems) |
| size_t | ReadData (void *data, size_t elem_size, size_t num_elems) |
| FILE * | GetFILE () |
RAII Wrapper for C FILE* Throws exceptions in situations where the caller is not usually going to have proper handling code:
| open3d::utility::filesystem::CFile::~CFile | ( | ) |
| void open3d::utility::filesystem::CFile::Close | ( | ) |
| int64_t open3d::utility::filesystem::CFile::CurPos | ( | ) |
return current position in the file (ftell)
| std::string open3d::utility::filesystem::CFile::GetError | ( | ) |
return last encountered error for this file
|
inline |
| int64_t open3d::utility::filesystem::CFile::GetFileSize | ( | ) |
| bool open3d::utility::filesystem::CFile::Open | ( | const std::string & | filename, |
| const std::string & | mode | ||
| ) |
|
inline |
| size_t open3d::utility::filesystem::CFile::ReadData | ( | void * | data, |
| size_t | elem_size, | ||
| size_t | num_elems | ||
| ) |
| const char * open3d::utility::filesystem::CFile::ReadLine | ( | ) |
Throws if we hit buffer maximum. In most cases, calling code is only capable of processing a complete line, if it receives a partial line it will probably fail and it is very likely to fail/corrupt on the next call that receives the remainder of the line
1.8.13