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

📄 io_test.h

📁 这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用于网络游戏医学图像网关的高qos要求.更详细的内容可阅读相应的材料
💻 H
字号:
/* -*- C++ -*- */
// IO_Test.h,v 4.3 1999/06/07 06:44:43 schmidt Exp

/* Class hierarchy for the File I/O tests. */

#include "ace/Profile_Timer.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

/* Base class for all the File I/O tests. */

class IO_Test
{
public:
  // Initialize the test name
  IO_Test (const char *name,
           ACE_Profile_Timer &tm);

  // Return the name of the test
  const char *name (void);

  // Execute the IO test (note this is a pure virtual function...)
  virtual int run_test (int iterations,
                        FILE *input_fp,
                        FILE *output_fp) = 0;

protected:
  // Name of the test
  const char *name_;

  // Reference to a timer
  ACE_Profile_Timer &tm_;
};

class Slow_Read_Write_Test : public IO_Test
{
public:
  Slow_Read_Write_Test (const char *name,
                        ACE_Profile_Timer &tm);
  virtual int run_test (int iterations,
                        FILE *input_fp,
                        FILE *output_fp);
};

class Stdio_Test : public IO_Test
{
public:
  Stdio_Test (const char *name,
              ACE_Profile_Timer &tm);
  virtual int run_test (int iterations,
                        FILE *input_fp,
                        FILE *output_fp);
};

class Block_Read_Write_Test : public IO_Test
{
public:
  Block_Read_Write_Test (const char *name,
                         ACE_Profile_Timer &tm);
  virtual int run_test (int iterations,
                        FILE *input_fp,
                        FILE *output_fp);
};

class Block_Fread_Fwrite_Test : public IO_Test
{
public:
  Block_Fread_Fwrite_Test (const char *name,
                           ACE_Profile_Timer &tm);
  virtual int run_test (int iterations,
                        FILE *input_fp,
                        FILE *output_fp);
};

class Mmap1_Test : public IO_Test
{
public:
  Mmap1_Test (const char *name,
              ACE_Profile_Timer &tm);
  virtual int run_test (int iterations,
                        FILE *input_fp,
                        FILE *output_fp);
};

class Mmap2_Test : public IO_Test
{
public:
  Mmap2_Test (const char *name,
              ACE_Profile_Timer &tm);
  virtual int run_test (int iterations,
                        FILE *input_fp,
                        FILE *output_fp);
};

⌨️ 快捷键说明

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