3 #include "stat_private.h"
10 Stat::Private::Private():
24 Stat::Stat(const Stat &other):
28 alloc_size(other.alloc_size),
30 owner_info(other.owner_info),
31 priv(other.priv ? new Private(*other.priv) : 0)
34 Stat &Stat::operator=(const Stat &other)
36 exists = other.exists;
39 alloc_size = other.alloc_size;
41 owner_info = other.owner_info;
43 priv = (other.priv ? new Private(*other.priv) : 0);
53 const std::string &Stat::get_owner() const
55 if(priv && owner_info.owner.empty())
56 priv->fill_owner_info(owner_info);
57 return owner_info.owner;
60 const std::string &Stat::get_group() const
62 if(priv && owner_info.group.empty())
63 priv->fill_owner_info(owner_info);
64 return owner_info.group;