载入中...
搜索中...
未找到
File.cpp
浏览该文件的文档.
13 if (!isopen && !open("rb")) throw eve::Exception("Could not read file %s.", getFilename().c_str());
Definition Exception.h:14
Data buffer paired with a filename (used for type identification).
Definition FileData.h:12
void * getData() const
Gets a pointer to the data. This pointer will obviously not be valid if the Data object is destroyed.
Definition FileData.h:23
virtual std::string getExtension() const
Gets the file extension for this File, or empty string if none.
Definition File.cpp:46
virtual FileData * read(int64_t size=ALL)
Reads data from the file and allocates a Data object.
Definition File.cpp:9
virtual bool write(const void *data, int64_t size)=0
Writes data into the File.
virtual std::string getFilename() const =0
Gets the filename for this File, or empty string if none.
Definition Build.cpp:11