0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Attributes | Private Member Functions | List of all members
Hypertable::Filesystem::Dirent Class Reference

Directory entry. More...

#include <Filesystem.h>

Inheritance diagram for Hypertable::Filesystem::Dirent:
Inheritance graph
[legend]
Collaboration diagram for Hypertable::Filesystem::Dirent:
Collaboration graph
[legend]

Public Attributes

String name
 File or directory name. More...
 
uint64_t length
 Length of file. More...
 
time_t last_modification_time {}
 Last modification time. More...
 
bool is_dir {}
 Flag indicating if entry id a directory. More...
 

Private Member Functions

uint8_t encoding_version () const override
 Returns encoding version. More...
 
size_t encoded_length_internal () const override
 Returns internal serialized length. More...
 
void encode_internal (uint8_t **bufp) const override
 Writes serialized representation of object to a buffer. More...
 
void decode_internal (uint8_t version, const uint8_t **bufp, size_t *remainp) override
 Reads serialized representation of object from a buffer. More...
 

Additional Inherited Members

- Public Member Functions inherited from Hypertable::Serializable
virtual size_t encoded_length () const
 Returns serialized object length. More...
 
virtual void encode (uint8_t **bufp) const
 Writes serialized representation of object to a buffer. More...
 
virtual void decode (const uint8_t **bufp, size_t *remainp)
 Reads serialized representation of object from a buffer. More...
 

Detailed Description

Directory entry.

Definition at line 92 of file Filesystem.h.

Member Function Documentation

void Filesystem::Dirent::decode_internal ( uint8_t  version,
const uint8_t **  bufp,
size_t *  remainp 
)
overrideprivatevirtual

Reads serialized representation of object from a buffer.

This function is to be overridden by derived classes and should decode the object per-se as encoded with encode_internal().

Parameters
versionEncoding version
bufpAddress of destination buffer pointer (advanced by call)
remainpAddress of integer holding amount of serialized encoding remaining
See also
encode_internal() for encoding format

Implements Hypertable::Serializable.

Definition at line 61 of file Filesystem.cc.

void Filesystem::Dirent::encode_internal ( uint8_t **  bufp) const
overrideprivatevirtual

Writes serialized representation of object to a buffer.

This function is to be overridden by derived classes and should encode the object per-se.

Parameters
bufpAddress of destination buffer pointer (advanced by call)

Implements Hypertable::Serializable.

Definition at line 54 of file Filesystem.cc.

size_t Filesystem::Dirent::encoded_length_internal ( ) const
overrideprivatevirtual

Returns internal serialized length.

This function is to be overridden by derived classes and should return the length of the the serialized object per-se.

Returns
Internal serialized length
See also
encode_internal() for encoding format

Implements Hypertable::Serializable.

Definition at line 50 of file Filesystem.cc.

uint8_t Filesystem::Dirent::encoding_version ( ) const
overrideprivatevirtual

Returns encoding version.

Returns
Encoding version

Implements Hypertable::Serializable.

Definition at line 46 of file Filesystem.cc.

Member Data Documentation

bool Hypertable::Filesystem::Dirent::is_dir {}

Flag indicating if entry id a directory.

Definition at line 102 of file Filesystem.h.

time_t Hypertable::Filesystem::Dirent::last_modification_time {}

Last modification time.

Definition at line 100 of file Filesystem.h.

uint64_t Hypertable::Filesystem::Dirent::length

Length of file.

Definition at line 98 of file Filesystem.h.

String Hypertable::Filesystem::Dirent::name

File or directory name.

Definition at line 96 of file Filesystem.h.


The documentation for this class was generated from the following files: