摘要: 利用面向对象的方法,提出了在数字电视发送和接收系统中实现DSM-CC中数据下载协议的一种规律化的伪C代码到C++语言的映射规则。这一规则利用C++面向对象的语言特点,结合DSM-CC协议栈语义定义有很大相似性的特点,充分利用了多态和继承等面向对象的思想。利用这一规则,给出了一种自顶向下的DSM-CC的C++语言实现。这一实现具有对数据转盘(DC)和对象转盘(OC)兼容、可扩展性强、发送端(编码端)与接收端(解码端)通用的特点。
关键词:
机顶盒,
数据转盘,
对象转盘
Abstract: By imposing object oriented (OO) method, the paper introduces a regularized mapping rule from pseudo C code of DSM-CC data download protocol syntax to C++ language in DTV transmission and receiving system. Using object oriented programming (OOP) character of C++ language, with the consideration of syntax similarity of DSM-CC protocol stack, this rule can fully employ the idea of polymorphism and inheritance of OOP. With this rule, it gaves an top down C++ implementation of DSMCC. This implementation is highly expansible, compatible for both data carousel (DC) and object carousel (OC), and applicable to both encoding and decoding.
中图分类号:
谷志奇,余松煜. DSM-CC编解码的C++实现[J]. , 2004, 30(22): 67-.
GU Zhiqi, YU Songyu. Implementation in C++ Language of Encoding and Decoding of DSM-CC Protocol in DTV System[J]. , 2004, 30(22): 67-.