DocumentCode :
2910907
Title :
ObjectStream: generating stream-based object I/O for C++
Author :
Chuang, Tyng-Ruey ; Jung, Chuan-Chieh ; Kuan, Wen-Min ; Kuo, Y.S.
Author_Institution :
Inst. of Inf. Sci., Acad. Sinica, Taipei, Taiwan
fYear :
1997
fDate :
35674
Firstpage :
70
Lastpage :
79
Abstract :
We describe the design and implementation of ObjectStream, a system for automatic generation of stream I/O primitives for complex C++ objects. The system consists of a parser based program generator and a generic object I/O library. The program generator pre-processes C++ class declarations to produce class-specific routines that, when executed with application programs, assists the class-neutral generic library to perform I/O operations for objects of the pre-processed classes. ObjectStream is novel in that it is non intrusive. It lets programmers keep the original class declarations for application development, without requiring the classes to be modified for I/O or to be derived from a persistent base class. This makes easy the task of managing application source code, and ensures compatibility of objects produced with and without the added I/O capability. The implementation of ObjectStream is compiler and machine independent, and its operation requires little guidance from the programmers. We describe the motivations behind ObjectStream, our development strategies, and several interesting implementation issues. A working example is included to illustrate the ObjectStream system
Keywords :
C language; application generators; grammars; input-output programs; object-oriented languages; object-oriented programming; software libraries; C++ class declarations; C++ language; I/O capability; ObjectStream; application development; application programs; application source code; automatic generation; class declarations; class-neutral generic library; class-specific routines; complex C++ objects; generic object I/O library; implementation issues; parser based program generator; pre-processed classes; program generator; stream I/O primitives; stream based object I/O; Automatic programming; Computer languages; Concrete; Information science; Java; Object oriented modeling; Object oriented programming; Program processors; Programming profession; Runtime library;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Technology of Object-Oriented Languages, 1997. TOOLS 24. Proceedings
Conference_Location :
Beijing
Print_ISBN :
0-8186-8551-4
Type :
conf
DOI :
10.1109/TOOLS.1997.713529
Filename :
713529
Link To Document :
بازگشت