construct
来源:互联网 发布:ftp阿里云服务器配置 编辑:程序博客网 时间:2024/05/21 08:57
#include<iostream>
using namespace std;
class WebRTCVoiceEngine
{
public:
WebRTCVoiceEngine()
{
cout<<"WebRTCVoiceEngine"<<endl;
}
};
class WebRTCVideoEngine
{
public:
WebRTCVideoEngine()
{
cout<<"WebRTCVideoEngine"<<endl;
}
};
class MediaEngineInterface
{
};
template<class VOICE, class VIDEO>
class CompositeMediaEngine:public MediaEngineInterface
{
public:
CompositeMediaEngine()
{
cout<<"CompositeMediaEngine"<<endl;
}
protected:
VOICE voice_;
VIDEO video_;
};
int main()
{
MediaEngineInterface* media_engine_ = new CompositeMediaEngine<WebRTCVoiceEngine, WebRTCVideoEngine>();
}
using namespace std;
class WebRTCVoiceEngine
{
public:
WebRTCVoiceEngine()
{
cout<<"WebRTCVoiceEngine"<<endl;
}
};
class WebRTCVideoEngine
{
public:
WebRTCVideoEngine()
{
cout<<"WebRTCVideoEngine"<<endl;
}
};
class MediaEngineInterface
{
};
template<class VOICE, class VIDEO>
class CompositeMediaEngine:public MediaEngineInterface
{
public:
CompositeMediaEngine()
{
cout<<"CompositeMediaEngine"<<endl;
}
protected:
VOICE voice_;
VIDEO video_;
};
int main()
{
MediaEngineInterface* media_engine_ = new CompositeMediaEngine<WebRTCVoiceEngine, WebRTCVideoEngine>();
}
0 0
- construct
- construct function
- construct express
- bzoj2146 Construct
- OpenMP parallel Construct
- nstl construct 理解
- PL/SQL LOOP Construct
- #构造函数?Construct,Function
- javascriptmvc—can.Construct
- sgu151 Construct a triangle
- 【STL】construct()和destroy()
- class file construct
- sgu151:Construct a triangle
- bzoj 2146: Construct
- c++ copy construct
- sgu151: Construct a triangle
- SGI STL中的construct
- Android 反射Construct应用
- 安卓消息处理机制-处理线程
- java学习第一阶段3
- Android 开源框架Universal-Image-Loader完全解析(一)--- 基本介绍及使用
- Linux用户用户组及目录与文件操作
- Activity中的四种启动模式
- construct
- Spring集成ORM框架之Hibernate的使用
- 好玩的WPF第一弹:窗口抖动+边框阴影效果+倒计时显示文字
- Subsets
- Qt批量遍历控件
- Arch下将xscreensaver脱离终端方法
- 如何通过反编译工具与插件 查看java *.class 文件源码
- hadoop的编程实例
- Linux(CentOS)SSH无密码验证登陆