19 !std::is_copy_constructible_v<CFileInputStream> &&
20 !std::is_copy_assignable_v<CFileInputStream>,
31 "Error trying to open file: '%s'", fileName.c_str());
48 return m_if.is_open();
69 if (!
m_if.is_open())
return 0;
71 m_if.read(static_cast<char*>(Buffer), Count);
72 return m_if.fail() ? 0 : Count;
93 if (!
m_if.is_open())
return 0;
95 ifstream::off_type
offset = Offset;
96 ifstream::seekdir way;
125 auto& f =
const_cast<std::ifstream&
>(
m_if);
127 const uint64_t previousPos = f.tellg();
130 f.seekg(previousPos, ios_base::beg);
139 auto& f =
const_cast<std::ifstream&
>(
m_if);
156 if (!
m_if.is_open())
return false;
158 std::getline(
m_if, str);
167 if (!
m_if.is_open())
return true;
TSeekOrigin
Used in CStream::Seek.
#define THROW_EXCEPTION(msg)
GLsizei const GLchar ** string
unsigned __int64 uint64_t
#define THROW_EXCEPTION_FMT(_FORMAT_STRING,...)
#define MRPT_UNUSED_PARAM(a)
Determines whether this is an X86 or AMD64 platform.