Mobile API Reference  MicroStrategy 2019
GenericFile.h
Go to the documentation of this file.
1 //==============================================================================================
2 // FILENAME : GenericFile.h
3 // AUTHOR : vovechkin
4 // CREATION : 2004-09-29
5 // Copyright (C) MicroStrategy Incorporated 2004
6 // All Rights Reserved
7 //==============================================================================================
8 #ifndef MFileSystem_GenericFile_h
9 #define MFileSystem_GenericFile_h
10 
12 #include "Base/Defines/StrongPtr.h"
13 #include "Base/Defines/ReturnPtr.h"
14 
15 namespace MBase
16 {
17  class Message;
18 }
19 
20 namespace MFileSystem
21 {
23  {
24  public:
25 
28 
29  // virtual destructor is a must
30  virtual ~GenericFile() throw()
31  {
32  }
33 
37  virtual const char* GetPath() const = 0;
38 
43  virtual bool IsAccessibleViaPath() const = 0;
44 
48  virtual Int64 GetSize() const = 0;
49 
53  virtual Int64 GetPosition() const = 0;
54 
58  virtual void MovePosition(Int64 iOffset) = 0;
59 
65  virtual void SetPosition(Int64 iOffset) = 0;
66 
72  virtual Int64 SetPositionToEnd() = 0;
73  };
74 }
75 
76 #endif // MFileSystem_GenericFile_h
MBase::ReturnPtr< GenericFile > ReturnPtr
Definition: GenericFile.h:27
MBase::StrongPtr< GenericFile > Ptr
Definition: GenericFile.h:26
virtual Int64 GetPosition() const =0
#define Int64
Definition: BasicTypes.h:36
virtual void SetPosition(Int64 iOffset)=0
virtual Int64 GetSize() const =0
virtual Int64 SetPositionToEnd()=0
virtual ~GenericFile()
Definition: GenericFile.h:30
Definition: Allocator.h:47
Definition: GenericFile.h:22
Definition: StrongPtr.h:50
virtual bool IsAccessibleViaPath() const =0
virtual const char * GetPath() const =0
Definition: StrongObjects.h:21
virtual void MovePosition(Int64 iOffset)=0
Definition: ReturnPtr.h:22