Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Browsable::RSysFileItem Class Reference

Representation of single item in the file browser.

Definition at line 25 of file RSysFileItem.hxx.

Public Member Functions

 RSysFileItem ()=default
 Default constructor.
 
 RSysFileItem (const std::string &_name, int _nchilds)
 
virtual ~RSysFileItem ()=default
 
bool Compare (const RItem *b, const std::string &method) const override
 
const std::string & GetGid () const
 
const std::string & GetType () const
 
const std::string & GetUid () const
 
bool IsFolder () const override
 
bool IsHidden () const override
 
void SetGid (const std::string &_gid)
 
void SetType (const std::string &_type)
 
void SetUid (const std::string &_uid)
 
- Public Member Functions inherited from ROOT::Browsable::RItem
 RItem ()=default
 
 RItem (const std::string &_name, int _nchilds=0, const std::string &_icon="")
 
virtual ~RItem ()=default
 
const std::string & GetIcon () const
 
const std::string & GetMTime () const
 
const std::string & GetName () const
 
const std::string & GetSize () const
 
const std::string & GetTitle () const
 
void SetChecked (bool on=true)
 
void SetExpanded (bool on=true)
 
void SetIcon (const std::string &_icon)
 
void SetMTime (const std::string &_mtime)
 
void SetName (const std::string &_name)
 
void SetSize (const std::string &_size)
 
void SetSize (Long64_t _size)
 
void SetTitle (const std::string &_title)
 

Protected Attributes

std::string fgid
 group id
 
std::string ftype
 file attributes
 
std::string fuid
 user id
 
- Protected Attributes inherited from ROOT::Browsable::RItem
bool checked {false}
 is checked, not yet used
 
bool expanded {false}
 is expanded
 
std::string fsize
 item size
 
std::string icon
 icon associated with item
 
std::string mtime
 modification time
 
std::string name
 item name
 
int nchilds {0}
 number of childs
 
std::string title
 item title
 

Private Attributes

int gid {0}
 ! file gid
 
bool isdir {false}
 ! true if directory
 
bool islink {false}
 ! true if symbolic link
 
long modtime {0}
 ! modification time
 
int64_t size {0}
 ! file size
 
int type {0}
 ! file type
 
int uid {0}
 ! file uid
 

Friends

class RSysDirLevelIter
 

#include <ROOT/Browsable/RSysFileItem.hxx>

Inheritance diagram for ROOT::Browsable::RSysFileItem:
[legend]

Constructor & Destructor Documentation

◆ RSysFileItem() [1/2]

ROOT::Browsable::RSysFileItem::RSysFileItem ( )
default

Default constructor.

◆ RSysFileItem() [2/2]

ROOT::Browsable::RSysFileItem::RSysFileItem ( const std::string &  _name,
int  _nchilds 
)
inline

Definition at line 50 of file RSysFileItem.hxx.

◆ ~RSysFileItem()

virtual ROOT::Browsable::RSysFileItem::~RSysFileItem ( )
virtualdefault

Member Function Documentation

◆ Compare()

bool ROOT::Browsable::RSysFileItem::Compare ( const RItem b,
const std::string &  method 
) const
inlineoverridevirtual

Reimplemented from ROOT::Browsable::RItem.

Definition at line 75 of file RSysFileItem.hxx.

◆ GetGid()

const std::string & ROOT::Browsable::RSysFileItem::GetGid ( ) const
inline

Definition at line 61 of file RSysFileItem.hxx.

◆ GetType()

const std::string & ROOT::Browsable::RSysFileItem::GetType ( ) const
inline

Definition at line 59 of file RSysFileItem.hxx.

◆ GetUid()

const std::string & ROOT::Browsable::RSysFileItem::GetUid ( ) const
inline

Definition at line 60 of file RSysFileItem.hxx.

◆ IsFolder()

bool ROOT::Browsable::RSysFileItem::IsFolder ( ) const
inlineoverridevirtual

Reimplemented from ROOT::Browsable::RItem.

Definition at line 65 of file RSysFileItem.hxx.

◆ IsHidden()

bool ROOT::Browsable::RSysFileItem::IsHidden ( ) const
inlineoverridevirtual

Reimplemented from ROOT::Browsable::RItem.

Definition at line 68 of file RSysFileItem.hxx.

◆ SetGid()

void ROOT::Browsable::RSysFileItem::SetGid ( const std::string &  _gid)
inline

Definition at line 57 of file RSysFileItem.hxx.

◆ SetType()

void ROOT::Browsable::RSysFileItem::SetType ( const std::string &  _type)
inline

Definition at line 55 of file RSysFileItem.hxx.

◆ SetUid()

void ROOT::Browsable::RSysFileItem::SetUid ( const std::string &  _uid)
inline

Definition at line 56 of file RSysFileItem.hxx.

Friends And Related Symbol Documentation

◆ RSysDirLevelIter

friend class RSysDirLevelIter
friend

Definition at line 27 of file RSysFileItem.hxx.

Member Data Documentation

◆ fgid

std::string ROOT::Browsable::RSysFileItem::fgid
protected

group id

Definition at line 43 of file RSysFileItem.hxx.

◆ ftype

std::string ROOT::Browsable::RSysFileItem::ftype
protected

file attributes

Definition at line 41 of file RSysFileItem.hxx.

◆ fuid

std::string ROOT::Browsable::RSysFileItem::fuid
protected

user id

Definition at line 42 of file RSysFileItem.hxx.

◆ gid

int ROOT::Browsable::RSysFileItem::gid {0}
private

! file gid

Definition at line 33 of file RSysFileItem.hxx.

◆ isdir

bool ROOT::Browsable::RSysFileItem::isdir {false}
private

! true if directory

Definition at line 35 of file RSysFileItem.hxx.

◆ islink

bool ROOT::Browsable::RSysFileItem::islink {false}
private

! true if symbolic link

Definition at line 34 of file RSysFileItem.hxx.

◆ modtime

long ROOT::Browsable::RSysFileItem::modtime {0}
private

! modification time

Definition at line 36 of file RSysFileItem.hxx.

◆ size

int64_t ROOT::Browsable::RSysFileItem::size {0}
private

! file size

Definition at line 37 of file RSysFileItem.hxx.

◆ type

int ROOT::Browsable::RSysFileItem::type {0}
private

! file type

Definition at line 31 of file RSysFileItem.hxx.

◆ uid

int ROOT::Browsable::RSysFileItem::uid {0}
private

! file uid

Definition at line 32 of file RSysFileItem.hxx.

Libraries for ROOT::Browsable::RSysFileItem:

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