摘要
利用面向对象的方法,提出了在数字电视发送和接收系统中实现DSM-CC中数据下载协议的一种规律化的伪C代码到C++语言的映射规则。这一规则利用C++面向对象的语言特点,结合DSM-CC协议栈语义定义有很大相似性的特点,充分利用了多态和继承等面向对象的思想。利用这一规则,给出了一种自顶向下的DSM-CC的C++语言实现。这一实现具有对数据转盘(DC)和对象转盘(OC)兼容、可扩展性强、发送端(编码端)与接收端(解码端)通用的特点。
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.
出处
《计算机工程》
CAS
CSCD
北大核心
2004年第22期67-68,163,共3页
Computer Engineering
基金
上海市科委资助项目(数模兼容一体机)