collocation_tester.h
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C头文件 代码 · 共 81 行
H
81 行
//Collocation_Tester.h,v 1.4 2003/10/28 18:30:51 bala Exp
//
// ============================================================================
//
// = LIBRARY
// TAO/tests/Multiple
//
// = FILENAME
// Collocation_Tester.h
//
// = DESCRIPTION
// This file contains the class that tests the TAO's collocation
// mechanism.
//
// = AUTHOR
// Angelo Corsaro <corsaro@cs.wustl.edu>
//
// ============================================================================
// -- Custom App. Include --
#include "MultipleC.h"
#include "ace/Log_Msg.h"
struct Quote
{
static const char *top;
static const char *left;
static const char *right;
static const char *bottom;
};
class Collocation_Tester
{
public:
// -- Constructor/Destructors --
Collocation_Tester (CORBA::Object_ptr object);
~Collocation_Tester ();
// -- Command --
void run (ACE_ENV_SINGLE_ARG_DECL);
// Runs the test.
private:
// -- Helper Methods --
int test_top (ACE_ENV_SINGLE_ARG_DECL);
// Tests the method accessible thru the
// Top interface.
int test_right (ACE_ENV_SINGLE_ARG_DECL);
// Tests the method accessible thru the
// Right interface.
int test_left (ACE_ENV_SINGLE_ARG_DECL);
// Tests the method accessible thru the
// Left interface.
int test_bottom (ACE_ENV_SINGLE_ARG_DECL);
// Tests the method accessible thru the
// Bottom interface.
int match_answer (const char *actual_answer,
const char *right_answer,
const char *method_name);
// This method tests wether the answer obtained
// is the one expected. As strcmp, it returns zero
// if a match occurs and a non-zero value if there
// is no match (actually 1 is returned if there is
// no match.
void shutdown (ACE_ENV_SINGLE_ARG_DECL);
private:
CORBA::Object_var object_;
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?