00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 #ifndef _VLEAF
00036 #define _VLEAF 1
00037
00038 #include "VestaSource.H"
00039
00040 class VLeaf : public VestaSource {
00041 private:
00042 ShortId shortId_;
00043 unsigned int link_count;
00044 public:
00045 VestaSource::errorCode
00046 read(void* buffer, int* nbytes, Basics::uint64 offset,
00047 AccessControl::Identity who) throw ();
00048 bool executable() throw ();
00049 Basics::uint64 size() throw ();
00050 time_t timestamp() throw ();
00051 VestaSource::errorCode
00052 write(const void* buffer, int* nbytes, Basics::uint64 offset,
00053 AccessControl::Identity who) throw ();
00054 VestaSource::errorCode
00055 setExecutable(bool x, AccessControl::Identity who) throw ();
00056 VestaSource::errorCode
00057 setSize(Basics::uint64 s, AccessControl::Identity who) throw ();
00058 VestaSource::errorCode
00059 setTimestamp(time_t ts,AccessControl::Identity who) throw ();
00060 ShortId shortId() throw() { return shortId_; };
00061 VLeaf(VestaSource::typeTag type, ShortId shortId,
00062 unsigned int links = 1) throw() {
00063 shortId_ = shortId;
00064 link_count = links;
00065 VestaSource::type = type;
00066 VestaSource::attribs = NULL;
00067 };
00068 unsigned int linkCount() { return link_count; }
00069 };
00070
00071 #endif // _VLEAF