3 #include "stat_private.h"
10 Stat::Stat(const Stat &other):
14 alloc_size(other.alloc_size),
16 owner_info(other.owner_info),
17 priv(other.priv ? new Private(*other.priv) : 0)
20 Stat &Stat::operator=(const Stat &other)
22 exists = other.exists;
25 alloc_size = other.alloc_size;
27 owner_info = other.owner_info;
29 priv = (other.priv ? new Private(*other.priv) : 0);
39 const string &Stat::get_owner() const
41 if(priv && owner_info.owner.empty())
42 priv->fill_owner_info(owner_info);
43 return owner_info.owner;
46 const string &Stat::get_group() const
48 if(priv && owner_info.group.empty())
49 priv->fill_owner_info(owner_info);
50 return owner_info.group;