From ac9e3ddb4277e5696d789ad6b3ea7aa820a5e76a Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Fri, 21 Dec 2007 21:24:01 +0000 Subject: idiscovery_t() default constructor and a couple of helpers Signed-off-by: Michael Krelin --- (limited to 'include') diff --git a/include/opkele/discovery.h b/include/opkele/discovery.h index 7865fb2..af4aa29 100644 --- a/include/opkele/discovery.h +++ b/include/opkele/discovery.h @@ -17,6 +17,7 @@ namespace opkele { string canonicalized_id; xrd::XRD_t xrd; + idiscovery_t() { } idiscovery_t(const string& i) { idiscover(*this,i); } @@ -28,6 +29,11 @@ namespace opkele { normalized_id.clear(); canonicalized_id.clear(); xrd.clear(); } + + idiscovery_t& operator=(const string& i) { + idiscover(*this,i); return *this; } + idiscovery_t& operator=(const char *i) { + idiscover(*this,i); return *this; } }; } -- cgit v0.9.0.2