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

📄 repository_configuration.h

📁 这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用于网络游戏医学图像网关的高qos要求.更详细的内容可阅读相应的材料
💻 H
字号:
/* -*- C++ -*- */
//=============================================================================
/**
 *  @file  Repository_Configuration.h
 *
 *  Repository_Configuration.h,v 1.3 2003/11/10 17:45:16 michel_j Exp
 *
 *  @brief  Class to maintain the non-Win32 Registry Server
 *  Configuration. Also is a wrapper around ACE_Configuration_Heap
 *  class.
 *  
 *  @author Priyanka Gontla <gontla_p@ociweb.com>
 */
//=============================================================================

#ifndef REPOSITORY_CONFIGURATION_H
#define REPOSITORY_CONFIGURATION_H

#include "ace/Configuration.h"

/**
 * @class Repository_Configuration
 *
 * @brief Maintains the server configurations.
 *
 * Class to help maintain the xml and non-win32 registry configuration.
 */
class Repository_Configuration
{
 public:
  
  /// Default Constructor
  Repository_Configuration (const char *repository_mode);
  
  /// Destructor
  ~Repository_Configuration ();

  const ACE_Configuration_Section_Key& root_section ();

  /// 
  int open ();
  
  /// opens a configuration based on a file name
  int open (const char* file_name);
    
  int open_section (const ACE_Configuration_Section_Key& base,
                    const char* sub_section,
                    int create, ACE_Configuration_Section_Key& result);
  
  int remove_section (const ACE_Configuration_Section_Key& key,
                      const char* sub_section,
                      int recursive);
  
  int enumerate_sections (const ACE_Configuration_Section_Key& key,
                          int Index,
                          ACE_CString& name);
  
  int set_string_value (const ACE_Configuration_Section_Key& key,
                        const char* name,
                        const ACE_CString& value);
  
  int set_integer_value (const ACE_Configuration_Section_Key& key,
                         const char* name,
                         u_int value);
  
  int get_string_value (const ACE_Configuration_Section_Key& key,
                        const char* name,
                        ACE_CString& value);
  
  int get_integer_value (const ACE_Configuration_Section_Key& key,
                         const char* name,
                         u_int& value);
  
 private:
  
  ACE_Configuration *config_;

};

#endif /* REPOSITORY_CONFIGURATION_H */

⌨️ 快捷键说明

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