options.h

来自「ace开发环境 用来开发网络程序 其运用了设计模式、多平台、C++等多种知识」· C头文件 代码 · 共 72 行

H
72
字号
/* -*- C++ -*- */// $Id: Options.h 60688 2004-09-24 14:42:42Z shuston $//============================================================================//// = LIBRARY//    JAWS//// = FILENAME//    Options.h//// = DESCRIPTION//     Options is an Singleton for blobby//// = AUTHOR//    Prashant Jain and Sumedh Mungee////============================================================================#ifndef ACE_BLOBBY_OPTIONS_H#define ACE_BLOBBY_OPTIONS_H#include "Blob.h"#include "Blob_Handler.h"#include "ace/Get_Opt.h"#if !defined (ACE_LACKS_PRAGMA_ONCE)# pragma once#endif /* ACE_LACKS_PRAGMA_ONCE */#include "ace/ARGV.h"class Options{public:  static Options *instance (void);  // Returns the singleton instance  void parse_args (int argc, ACE_TCHAR *argv[]);  // parses commandline arguments  ACE_TCHAR *hostname_;  // Hostname to connect to  u_short port_;  // Port number to use  ACE_TCHAR *filename_;  // Filename to upload/download  int length_;  // number of bytes to read/write  int offset_;  // offset to read/write  char operation_;  // "r" means download (read), and "w" means upload (write).  int debug_;  // turns on verbosityprotected:  Options (void);  // protected constructor, singleton  static Options *instance_;  // the singleton};#endif /* ACE_BLOBBY_OPTIONS_H */

⌨️ 快捷键说明

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