CDP4JsonFileDal Overview - STARIONGROUP/COMET-SDK-Community-Edition GitHub Wiki

Introduction

The CDP4JsonFileDal library is a C# library that provides an implementation of ECSS-E-TM-10-25A Annex C.2, the JSON Exchange File Format. The purpose of the CDP4JsonFileDal is to read the content of a JSON Exchange File, or write a complete instance of the COMET Data Model to such a JSON Exchange File.

The CDP4JsonFileDal library is a very light weight library, it exposes only one class:

  • JsonFileDal: The class is used to read from and export to a JSON Exchange File.

DalExport

The JsonFileDal class is decorated with the DalExportAttribute. This allows it to be dynamicaly loaded using the Managed Extensibility Framework (MEF).

Open, Read and Write

The JsonFileDal can be used to export a multiple Engineering Models, including the required reference data and SiteDirectory data that is required to load these EngineeringModels using either the CDP4-COMET-IME or the CDP4-COMET Web Services. Equally, it can be used to read the content of a JSON Exchange File. However, it cannot be used as a stand-alone server to update the content. It's primary purpose is to facility the exchange of models between organizations based on a file format.