Open-Transactions  0.93.0-ge03d287
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
opentxs::OTNameLookup Class Reference

#include <OTRecordList.hpp>

Public Member Functions

EXPORT OTNameLookup ()
 
virtual EXPORT ~OTNameLookup ()
 
virtual EXPORT std::string GetNymName (const std::string &str_id, const std::string *p_server_id=nullptr) const
 
virtual EXPORT std::string GetAcctName (const std::string &str_id, const std::string *p_nym_id=nullptr, const std::string *p_server_id=nullptr, const std::string *p_asset_id=nullptr) const
 
virtual EXPORT std::string GetAddressName (const std::string &str_address) const
 

Detailed Description

Definition at line 150 of file OTRecordList.hpp.

Constructor & Destructor Documentation

EXPORT opentxs::OTNameLookup::OTNameLookup ( )
inline

Definition at line 153 of file OTRecordList.hpp.

154  {
155  }
opentxs::OTNameLookup::~OTNameLookup ( )
virtual

Definition at line 225 of file OTRecordList.cpp.

226 {
227  // Note: Though the Java app will instantiate NameLookup once (its own
228  // version/subclass of it)
229  // and pass that instance to C++ so that OTRecordList can make calls to it
230  // from inside OT, that
231  // doesn't mean that C++ apps like Moneychanger won't make as many instances
232  // as they want. Bottom
233  // line? No error message necessary here as we have with the password
234  // callback.
235  //
236  // otErr << "OTNameLookup::~OTNameLookup: (This should only happen ONCE
237  // ONLY -- as the application is closing.)\n";
238  // std::cout << "OTNameLookup::~OTNameLookup()" << std:: endl;
239 }

Member Function Documentation

std::string opentxs::OTNameLookup::GetAcctName ( const std::string &  str_id,
const std::string *  p_nym_id = nullptr,
const std::string *  p_server_id = nullptr,
const std::string *  p_asset_id = nullptr 
) const
virtual

Definition at line 251 of file OTRecordList.cpp.

254 {
255  if (str_id.empty()) return "";
256 
257  return OTAPI_Wrap::GetAccountWallet_Name(str_id);
258 }
static EXPORT std::string GetAccountWallet_Name(const std::string &ACCOUNT_ID)
Definition: OTAPI.cpp:924
std::string opentxs::OTNameLookup::GetAddressName ( const std::string &  str_address) const
virtual

Definition at line 261 of file OTRecordList.cpp.

262 {
263  return ""; // There are no native OT lookups for a Bitmessage address. (Only
264  // useful when overriding.)
265 }
std::string opentxs::OTNameLookup::GetNymName ( const std::string &  str_id,
const std::string *  p_server_id = nullptr 
) const
virtual

Definition at line 242 of file OTRecordList.cpp.

244 {
245  if (str_id.empty()) return "";
246 
247  return OTAPI_Wrap::GetNym_Name(str_id);
248 }
static EXPORT std::string GetNym_Name(const std::string &NYM_ID)
Definition: OTAPI.cpp:648

The documentation for this class was generated from the following files: