⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 url_properties.i

📁 ACE自适配通信环境(ADAPTIVE Communication Environment)是可以自由使用、开放源码的面向对象(OO)框架(Framework)
💻 I
字号:
// -*- C++ -*-//// URL_Properties.i,v 1.9 2004/04/23 03:06:19 ossama ExpACE_INLINE size_tACE_WString_Helper::size (const ACE_WString &wstr){  return (wstr.length () + 1) * sizeof (ACE_USHORT16);}ACE_INLINEACE_URL_Property::ACE_URL_Property (const char *name, const char *value)  : name_ (name),    value_ (value){}ACE_INLINEACE_URL_Property::ACE_URL_Property (const ACE_USHORT16 *name,				    const ACE_USHORT16 *value)  : name_ (name),    value_ (value){}ACE_INLINEACE_URL_Property::ACE_URL_Property (const ACE_URL_Property &p)  : name_ (p.name_),    value_ (p.value_){}ACE_INLINEACE_URL_Property::~ACE_URL_Property (void){}ACE_INLINE ACE_URL_Property &ACE_URL_Property::operator= (const ACE_URL_Property &rhs){  if (this != &rhs)    {      this->name_ = rhs.name_;      this->value_ = rhs.value_;    }  return *this;}ACE_INLINE boolACE_URL_Property::operator== (const ACE_URL_Property &rhs) const{  if (this == &rhs || this->name_ != rhs.name_ ||      this->value_ != rhs.value_)    return true;  else    return false;}ACE_INLINE boolACE_URL_Property::operator!= (const ACE_URL_Property &rhs) const{  return !(*this == rhs);}ACE_INLINE ACE_WString &ACE_URL_Property::name_rep (void){  return this->name_;}ACE_INLINE const ACE_WString &ACE_URL_Property::name (void) const{  return this->name_;}ACE_INLINE voidACE_URL_Property::name (const char *n){  this->name_ = ACE_WString (n);}ACE_INLINE voidACE_URL_Property::name (const ACE_USHORT16 *n){  this->name_ = ACE_WString (n);}ACE_INLINE ACE_WString &ACE_URL_Property::value_rep (void){  return this->value_;}ACE_INLINE const ACE_WString &ACE_URL_Property::value (void) const{  return this->value_;}ACE_INLINE voidACE_URL_Property::value (const char *v){  this->value_ = ACE_WString (v);}ACE_INLINE voidACE_URL_Property::value (const ACE_USHORT16 *v){  this->value_ = ACE_WString (v);}ACE_INLINE size_tACE_URL_Property::size (void) const{  size_t len = 2;    len += this->name_.length () + this->value_.length ();  return len * sizeof (ACE_USHORT16);}ACE_INLINEACE_URL_Offer::ACE_URL_Offer (const size_t size, const char *url)  : url_ (url),    prop_ (size){}ACE_INLINEACE_URL_Offer::ACE_URL_Offer (const ACE_URL_Offer &o)  : url_ (o.url_),    prop_ (o.prop_){}ACE_INLINEACE_URL_Offer::~ACE_URL_Offer (void){}ACE_INLINE ACE_URL_Offer &ACE_URL_Offer::operator= (const ACE_URL_Offer &rhs){  if (this != &rhs)    {      this->url_ = rhs.url_;      this->prop_ = rhs.prop_;    }  return *this;}ACE_INLINE boolACE_URL_Offer::operator== (const ACE_URL_Offer &rhs) const{  if (this == &rhs      && this->url_ == rhs.url_      && this->prop_ == rhs.prop_)    return true;  else    return false;}ACE_INLINE boolACE_URL_Offer::operator!= (const ACE_URL_Offer &rhs) const{  return !(*this == rhs);}ACE_INLINE ACE_WString &ACE_URL_Offer::url_rep (void){  return this->url_;}ACE_INLINE const ACE_WString &ACE_URL_Offer::url (void) const{  return this->url_;}ACE_INLINE voidACE_URL_Offer::url (const ACE_USHORT16 *url){  this->url_ = ACE_WString (url);}ACE_INLINE voidACE_URL_Offer::url (const char *url){  this->url_ = ACE_WString (url);}ACE_INLINE ACE_URL_Property_Seq &ACE_URL_Offer::url_properties (void){  return this->prop_;}ACE_INLINE voidACE_URL_Offer::url_properties (const ACE_URL_Property_Seq &prop){  this->prop_ = prop;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -