00001 #include "PerBaseEvent/PerRef.h" 00002 00003 PerRef::PerRef() 00004 : m_entry(-1), m_path("") 00005 { 00006 } 00007 00008 PerRef::PerRef(int entry, const std::string& path) 00009 : m_entry(entry), m_path(path) 00010 { 00011 } 00012 PerRef::~PerRef() 00013 { 00014 } 00015 00016 int PerRef::entry() const 00017 { 00018 return m_entry; 00019 } 00020 00021 void PerRef::setEntry(int entry) 00022 { 00023 m_entry = entry; 00024 } 00025 00026 const std::string& PerRef::path() const 00027 { 00028 return m_path; 00029 } 00030 00031 void PerRef::setPath(const std::string& path) 00032 { 00033 m_path = path; 00034 } 00035 00036 00037 PerRefInd::PerRefInd() 00038 : PerRef(), m_index(-1) 00039 { 00040 } 00041 00042 PerRefInd::PerRefInd(int index, int entry, const std::string& path) 00043 : PerRef(entry,path), m_index(index) 00044 { 00045 } 00046 00047 PerRefInd::~PerRefInd() 00048 { 00049 } 00050 00051 int PerRefInd::index() const 00052 { 00053 return m_index; 00054 } 00055 00056 void PerRefInd::setIndex(int index) 00057 { 00058 m_index = index; 00059 } 00060