00001
00002
00003
00004
00005 #include "eirods_physical_object.h"
00006
00007
00008 namespace eirods {
00009
00010
00011
00012 physical_object::physical_object() : is_dirty_( -1 ),
00013 repl_num_( -1 ),
00014 map_id_( -1 ),
00015 size_( -1 ),
00016 id_( -1 ),
00017 coll_id_( -1 ) {
00018 }
00019
00020
00021
00022 physical_object::physical_object( const physical_object& _rhs ) {
00023 is_dirty_ = _rhs.is_dirty_;
00024 repl_num_ = _rhs.repl_num_;
00025 map_id_ = _rhs.map_id_;
00026 size_ = _rhs.size_;
00027 id_ = _rhs.id_;
00028 coll_id_ = _rhs.coll_id_;
00029 name_ = _rhs.name_;
00030 version_ = _rhs.version_;
00031 type_name_ = _rhs.type_name_;
00032 resc_group_name_ = _rhs.resc_group_name_;
00033 resc_name_ = _rhs.resc_name_;
00034 path_ = _rhs.path_;
00035 owner_name_ = _rhs.owner_name_;
00036 owner_zone_ = _rhs.owner_zone_;
00037 status_ = _rhs.status_;
00038 checksum_ = _rhs.checksum_;
00039 expiry_ts_ = _rhs.expiry_ts_;
00040 mode_ = _rhs.mode_;
00041 r_comment_ = _rhs.r_comment_;
00042 create_ts_ = _rhs.create_ts_;
00043 modify_ts_ = _rhs.modify_ts_;
00044 resc_hier_ = _rhs.resc_hier_;
00045
00046 }
00047
00048
00049
00050 physical_object::~physical_object() {
00051 }
00052
00053
00054
00055 physical_object& physical_object::operator=( const physical_object& _rhs ) {
00056 if( this != &_rhs ) {
00057 is_dirty_ = _rhs.is_dirty_;
00058 repl_num_ = _rhs.repl_num_;
00059 map_id_ = _rhs.map_id_;
00060 size_ = _rhs.size_;
00061 id_ = _rhs.id_;
00062 coll_id_ = _rhs.coll_id_;
00063 name_ = _rhs.name_;
00064 version_ = _rhs.version_;
00065 type_name_ = _rhs.type_name_;
00066 resc_group_name_ = _rhs.resc_group_name_;
00067 resc_name_ = _rhs.resc_name_;
00068 path_ = _rhs.path_;
00069 owner_name_ = _rhs.owner_name_;
00070 owner_zone_ = _rhs.owner_zone_;
00071 status_ = _rhs.status_;
00072 checksum_ = _rhs.checksum_;
00073 expiry_ts_ = _rhs.expiry_ts_;
00074 mode_ = _rhs.mode_;
00075 r_comment_ = _rhs.r_comment_;
00076 create_ts_ = _rhs.create_ts_;
00077 modify_ts_ = _rhs.modify_ts_;
00078 resc_hier_ = _rhs.resc_hier_;
00079
00080 }
00081
00082 return *this;
00083
00084 }
00085
00086
00087 };
00088
00089
00090