00001 // passport.cpp: implementation of the Passport class. 00002 // 00004 00005 #include "passport.h" 00006 00008 // Construction/Destruction 00010 00011 Passport::Passport() 00012 { 00013 } 00014 // 00015 //------------------------------------------------------------------- 00016 // 00017 Passport::~Passport() 00018 { 00019 } 00020 // 00021 //------------------------------------------------------------------- 00022 // 00023 bool Passport::AddEntry( std::string p_key, PASSPORT_ENTRY p_entry ) 00024 { 00025 Entries[p_key] = p_entry; 00026 00027 return true; 00028 } 00029 // 00030 //------------------------------------------------------------------- 00031 // 00032 bool Passport::GetEntry( std::string p_key, PASSPORT_ENTRY * p_container ) 00033 { 00034 if ( 0 < Entries.count(p_key) ) 00035 { 00036 *p_container = Entries[p_key]; 00037 return true; 00038 } 00039 return false; 00040 } 00041 // 00042 //------------------------------------------------------------------- 00043 // 00044 bool Passport::LoadEntries() 00045 { 00046 return true; 00047 } 00048 // 00049 //------------------------------------------------------------------- 00050 // 00051 bool Passport::DeleteEntry( std::string p_key ) 00052 { 00053 return true; 00054 } 00055 // 00056 //------------------------------------------------------------------- 00057 //