資源簡(jiǎn)介
該程序使用QT編寫了一個(gè)給予DDS的通信程序,很好的演示了DDS協(xié)議的使用方法,是學(xué)習(xí)和使用DDS的好例子
代碼片段和文件信息
//?-*-?C++?-*-
//?$Id$
/**
?*?Code?generated?by?the?The?ACE?ORB?(TAO)?IDL?Compiler?v2.0a_p7
?*?TAO?and?the?TAO?IDL?Compiler?have?been?developed?by:
?*???????Center?for?Distributed?object?Computing
?*???????Washington?University
?*???????St.?Louis?MO
?*???????USA
?*???????http://www.cs.wustl.edu/~schmidt/doc-center.html
?*?and
?*???????Distributed?object?Computing?Laboratory
?*???????University?of?California?at?Irvine
?*???????Irvine?CA
?*???????USA
?*?and
?*???????Institute?for?Software?Integrated?Systems
?*???????Vanderbilt?University
?*???????Nashville?TN
?*???????USA
?*???????http://www.isis.vanderbilt.edu/
?*
?*?Information?about?TAO?is?available?at:
?*?????http://www.cs.wustl.edu/~schmidt/TAO.html
?**/
//?TAO_IDL?-?Generated?from
//?.\be\be_codegen.cpp:375
#include?“GraphC.h“
#include?“tao/CDR.h“
#if?!defined?(__ACE_INLINE__)
#include?“GraphC.inl“
#endif?/*?!defined?INLINE?*/
//?TAO_IDL?-?Generated?from
//?d:\ace_wrappers\tao\tao_idl\be\be_visitor_enum/cdr_op_cs.cpp:41
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
::CORBA::Boolean?operator<(TAO_OutputCDR?&strm?Graph::GraphType?_tao_enumerator)
{
??return?strm?<?(_tao_enumerator);
}
::CORBA::Boolean?operator>>?(TAO_InputCDR?&strm?Graph::GraphType?&?_tao_enumerator)
{
??::CORBA::ULong?_tao_temp?=?0;
??::CORBA::Boolean?const?_tao_success?=?strm?>>?_tao_temp;
??
??if?(_tao_success)
????{
??????_tao_enumerator?=?static_cast?(_tao_temp);
????}
??
??return?_tao_success;
}
TAO_END_VERSIONED_NAMESPACE_DECL
//?TAO_IDL?-?Generated?from
//?d:\ace_wrappers\tao\tao_idl\be\be_visitor_structure/cdr_op_cs.cpp:52
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
::CORBA::Boolean?operator<(
????TAO_OutputCDR?&strm
????const?Graph::Chart?&_tao_aggregate)
{
??return
????(strm?<????(strm?<????(strm?<????(strm?<????(strm?<????(strm?<}
::CORBA::Boolean?operator>>?(
????TAO_InputCDR?&strm
????Graph::Chart?&_tao_aggregate)
{
??return
????(strm?>>?_tao_aggregate.timestamp)?&&
????(strm?>>?_tao_aggregate.type)?&&
????(strm?>>?_tao_aggregate.size)?&&
????(strm?>>?_tao_aggregate.color)?&&
????(strm?>>?_tao_aggregate.cx)?&&
????(strm?>>?_tao_aggregate.cy);
}
TAO_END_VERSIONED_NAMESPACE_DECL
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件????????634??2011-08-19?09:45??DDS_Demo\bin\dds_tcp_conf.ini
?????文件?????728576??2014-08-13?21:35??DDS_Demo\bin\GraphCommond.dll
?????文件??????75448??2014-08-13?21:35??DDS_Demo\bin\GraphCommond.exp
?????文件????2886968??2014-08-13?21:35??DDS_Demo\bin\GraphCommond.ilk
?????文件?????114082??2014-08-13?21:35??DDS_Demo\bin\GraphCommond.lib
?????文件????8178688??2014-08-13?21:35??DDS_Demo\bin\GraphCommond.pdb
?????文件????????364??2015-01-16?10:57??DDS_Demo\bin\repo.ior
?????文件?????121344??2015-01-16?10:55??DDS_Demo\bin\ShapePublisher.exe
?????文件????6433792??2015-01-16?10:55??DDS_Demo\bin\ShapePublisher.pdb
?????文件?????129024??2015-01-16?10:55??DDS_Demo\bin\ShapeSubscriber.exe
?????文件????6491136??2015-01-16?10:54??DDS_Demo\bin\ShapeSubscriber.pdb
?????文件????????104??2009-09-23?11:06??DDS_Demo\bin\tcp.conf
?????文件?????????71??2015-01-16?10:47??DDS_Demo\bin\運(yùn)行?-DCPS.bat
?????文件????????114??2014-08-13?10:17??DDS_Demo\bin\運(yùn)行.bat
?????文件?????????32??2010-03-30?09:48??DDS_Demo\GraphCommon\1.bat
?????文件????????631??2011-12-21?15:08??DDS_Demo\GraphCommon\1.mpc
?????文件????????359??2010-07-04?19:31??DDS_Demo\GraphCommon\Graph.idl
?????文件???????2464??2014-08-13?21:34??DDS_Demo\GraphCommon\GraphC.cpp
?????文件???????4870??2015-01-13?16:10??DDS_Demo\GraphCommon\GraphC.h
?????文件????????751??2014-08-13?21:34??DDS_Demo\GraphCommon\GraphC.inl
?????文件????6884352??2015-01-12?15:17??DDS_Demo\GraphCommon\GraphCommon.ncb
?????文件???????1241??2014-04-12?14:40??DDS_Demo\GraphCommon\GraphCommon.sln
????..A..H.?????21504??2015-01-12?15:17??DDS_Demo\GraphCommon\GraphCommon.suo
?????文件??????20777??2014-04-12?14:40??DDS_Demo\GraphCommon\GraphCommon.vcproj
?????文件???????1387??2015-01-12?15:17??DDS_Demo\GraphCommon\GraphCommon.vcproj.HX-PC.ii.user
?????文件???????1403??2014-08-13?21:35??DDS_Demo\GraphCommon\GraphCommon.vcproj.magic_yang-PC.magic_yang.user
?????文件???????1407??2011-12-21?15:10??DDS_Demo\GraphCommon\GraphCommon.vcproj.PC-201111031045.Administrator.user
?????文件???????2214??2015-01-13?16:10??DDS_Demo\GraphCommon\GraphCommon_Export.h
?????文件???????1021??2014-08-13?21:34??DDS_Demo\GraphCommon\GraphS.cpp
?????文件???????2412??2014-08-13?21:34??DDS_Demo\GraphCommon\GraphS.h
............此處省略117個(gè)文件信息
評(píng)論
共有 條評(píng)論