论文部分内容阅读
本文提出一种以C++库的形式建立的现行检结构设计规范的面向对象模型。该模型作为一种规范库与应用程序相对独立,这样,一方面便于设计规范的单独维护与更新,另一方面能使规范库供多个应用程序使用。另外,利用C++类定义与其实现代码相分离的特点,代码可以有不同设计规范的实现版本,这样同一个应用程序有可能通过统一的接口使用不同国别的规范。文中描述了规范库类等级关系的设计并结合示例说明了规范库的使用方法。
This paper presents an object-oriented model of the current inspection structure design specification established in the form of a C++ library. The model is relatively independent of the specification library and the application program. In this way, on the one hand, the separate maintenance and updating of the design specification is facilitated, and on the other hand, the specification library can be used by multiple application programs. In addition, using C++ classes to define features that are separate from their implementation code, the code can have implementation versions of different design specifications, so that the same application may use different country specifications through a uniform interface. This paper describes the design of the canonical library class hierarchy and illustrates the use of the canonical library with examples.