24 #ifndef _OD_RxFS_INCLUDED_
25 #define _OD_RxFS_INCLUDED_
37 inline OdAnsiString
toUTF8(
const char* sz) {
return OdAnsiString(sz,
CP_UTF_8); }
38 inline OdAnsiString
toUTF8(
const char* sz,
int len) {
return OdAnsiString(sz, len,
CP_UTF_8); }
53 inline OdAnsiString
toStr();
55 inline void putStr(
const OdAnsiString& str);
228 res.releaseBuffer(len);
259 throw OdError(
"Class RxFS is not found");
265 # pragma MARKMESSAGE(dna: todo: take file creation disposition into account)
FIRSTDLL_EXPORT OdRxDynamicLinker * odrxDynamicLinker()
#define GETBIT(flags, bit)
FIRSTDLL_EXPORT OdRxObjectPtr odrxCreateObject(const OdString &sClassName)
FIRSTDLL_EXPORT OdRxSystemServices * odrxSystemServices()
virtual Id endWrite(Hash *hash=0)=0
ODRX_DECLARE_MEMBERS(FilePx)
virtual OdRxObjectPtr open(OdRxObject *obj, const char *path, File::Access accessMode=File::Read, File::Share shareMode=File::DenyNo, File::Creation disposition=File::OpenExisting)=0
static OdRxObjectPtr mount(OdRxObject *fs, const OdString &mountPath=OdString::kEmpty)
static OdRxObjectPtr unmount(const OdString &mountPath)
virtual void mount(File::Id fid, const OdString &path)=0
static RxFSP byMountPath(const OdString &storageMountPath)
File::ReadBufP openR(const File::Hash &hsh)
virtual void attach(const OdString &pathToData)=0
virtual File::ReadBufP openR(File::Id file)=0
void unmount(File::Id fid)
bool exists(const OdString &path, File::Hash &outHash)
virtual File::Id fileId(const File::Hash &hsh)=0
File::ReadBufP openR(const OdString &path)
StreamP open(const OdString &path, int access=File::Read, File::Share sh=File::DenyReadWrite, File::Creation dispos=File::OpenExisting)
virtual File::Id fileId(const OdString &path)=0
virtual bool fileHash(File::Id fid, File::Hash &outHash)=0
static RxFSP create(const OdString &pathToData=OdString::kEmpty)
ODRX_DECLARE_MEMBERS(RxFS)
virtual File::WriteBufP openW(const OdString &path=OdString::kEmpty, OdInt64 fixedLength=-1)=0
virtual File::Id put(Stream *data, File::Hash *out, const OdString &mountPath=OdString::kEmpty)=0
void putStr(const OdString &str)
virtual OdUInt64 seek(OdInt64 offset, OdDb::FilerSeekType seekType)
virtual OdRxModulePtr loadApp(const OdString &applicationName, bool silent=true)=0
virtual OdStreamBufPtr createFile(const OdString &filename, Oda::FileAccessMode accessMode=Oda::kFileRead, Oda::FileShareMode shareMode=Oda::kShareDenyNo, Oda::FileCreationDisposition creationDisposition=Oda::kOpenExisting)
virtual bool accessFile(const OdString &filename, int accessMode)
void attach(const T *pObject)
virtual OdUInt64 length()
virtual void getBytes(void *buffer, OdUInt32 numBytes)
virtual OdUInt64 seek(OdInt64 offset, OdDb::FilerSeekType seekType)
virtual void putBytes(const void *buffer, OdUInt32 numBytes)
FIRSTDLL_EXPORT_STATIC static const OdString kEmpty
GLint GLenum GLsizei GLsizei GLint GLsizei const void * data
OdSmartPtr< Stream > ReadBufP
bool access(const OdString &path, int acc=Read)
OdAnsiString toStr(const OdString &path)
void putStr(const OdString &path, const OdString &str)
void putStr(const OdString &path, const OdAnsiString &str)
OdSmartPtr< WriteBuf > WriteBufP
StreamP open(const OdString &path, int acc=Read, Creation dispos=OpenExisting, Share sh=DenyNo)
OdRxDictionary Dictionary
OdSmartPtr< Stream > StreamP
OdSmartPtr< FilePx > FilePxP
OdSmartPtr< Dictionary > DictionaryP
OdAnsiString toUTF8(const OdString &str)
@ eKeyNotFound
A try to proceed an operation with a null smart pointer to the Teigha Publish document.