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

📄 name_binding.h

📁 ACE自适配通信环境(ADAPTIVE Communication Environment)是可以自由使用、开放源码的面向对象(OO)框架(Framework)
💻 H
字号:
/* -*- C++ -*- */// Name_Binding.h,v 1.5 2005/01/21 02:19:19 ossama Exp#ifndef NAME_BINDING_H#define NAME_BINDING_H#include "ace/OS_NS_stdlib.h"#include "ace/OS_NS_string.h"#include "ace/Auto_Ptr.h"#include "ace/Name_Space.h"// Listing 1 code/ch21class Name_Binding{public:  Name_Binding (ACE_Name_Binding *entry)  {    this->name_ = entry->name_.char_rep ();    this->value_ = entry->value_.char_rep ();    this->type_ = ACE_OS::strdup (entry->type_);  }  Name_Binding (const ACE_NS_WString &n,                const ACE_NS_WString &v,                const char *t)  {    this->name_ = n.char_rep ();    this->value_ = v.char_rep ();    this->type_ = ACE_OS::strdup (t);  }  ~Name_Binding ()  {    delete this->name_;    delete this->value_;    ACE_OS::free (const_cast<char*> (this->type_));    this->type_ = 0;  }  char *name (void)  { return this->name_; }  char *value (void)  { return this->value_; }  const char *type (void)  { return this->type_; }  int int_value (void)  { return ACE_OS::atoi (this->value ()); }private:  char *name_;  char *value_;  char *type_;};typedef auto_ptr<Name_Binding> Name_Binding_Ptr;// Listing 1#endif /* NAME_BINDING_H */

⌨️ 快捷键说明

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