代码搜索结果
找到约 322,615 项符合
Interface 的代码
interface.h
// interface.h
struct IMotion : public IUnknown
{
STDMETHOD_(void, Fly) () = 0;
STDMETHOD_(int&, GetPosition) () = 0;
};
struct IVisual : public IUnknown
{
STDMETHOD_(void, D
interface.h
// interface.h
struct IMotion : public IUnknown
{
STDMETHOD_(void, Fly) () = 0;
STDMETHOD_(int&, GetPosition) () = 0;
};
struct IVisual : public IUnknown
{
STDMETHOD_(void, D
interface.cpp
// Fig. 7.10: interface.cpp
// Definition of class Interface
#include "interface.h"
#include "implementation.h"
Interface::Interface( int v )
: ptr ( new Implementation( v ) ) { }
// cal
interface.h
// Fig. 7.10: interface.h
// Header file for interface.cpp
class Implementation; // forward class declaration
class Interface {
public:
Interface( int );
void setValue( int );
interface.jc
/*
* interface.jc
*
* The language allows (currently very simple) inheritance from a single interface.
* An interface can only have methods, no static functions and no data. All methods
*
interface.h
// Interface.h: interface for the CInterface class.
//
//////////////////////////////////////////////////////////////////////
/*---------------------------------------------------------------------
interface.h
/*
interface.h for interface.c
(c) 2007 wzt
*/
#ifndef INTERFACE_H
#define INTERFACE_H
#define DEBUG
#define NAME 30
#define DEFAULT_INTERFACE "eth0"
char
interface.cpp
#include
#include
#include
#include "Interface.h"
using namespace std;
Interface::Interface() {
//variable initialization
init();
}
void Interface::ini
interface.h
#ifndef INTERFACE_H
#define INTERFACE_H
#include
#include
using namespace std;
class Interface
{
public :
Interface();
//set