libccmio

Home Modules Examples

Introduction

The CCM specification is a loose specification where data is stored in pieces, rather than in a strict domain-subdomain hierarchy. This allows the flexibility for future changes. Similarly, the CCMIO API is also fairly loose. It has a knowledge of different entities and a defined hierarchy, but the functions are not strongly hierarchical. This puts part of the burden of following the hierarchy on the user of the API. Thus it is helpful to refer to the CCM specification while using the CCMIO API.

The API is divided into three sections: the Intermediate API, the Core API, and utility functions. The Intermediate API is the main API for reading and writing CCM files. The Core API is the lowest-level API, and is mostly a wrapper around the ADF library. This API is intended for use in writing the Intermediate API, but is provided in case the Intermediate API is not sufficient. There are also some strictly unnecessary but helpful functions in both the Intermediate and Core APIs that are classified as utility functions. The functions for optional nodes in the Intermediate API are provided to avoid the need to use the Core API, and the Core API has some utility functions to do standard tasks more quickly.

The CCMIO API has been written in C to avoid incompatibilities and differing standards between C++ compilers and libraries on the many platforms that CD-adapco supports. Unfortunately, this means that some internal data structures are exposed in the header files. These should not be be used; all CCMIO structures should be treated as opaque objects. In the rare case that you need to drop down to the Core API, the function CCMIOGetEntityNode() should be used to get the CCMIONode corresponding to the CCMIOEntity.

Design Considerations

The API makes certain assumptions about the nature of usability;  these are:

Caveats


Generated on Mon Jun 5 17:16:02 2006 for libccmio by doxygen1.2.18