/* Copyright 2017-2024 by Altair Engineering Inc. All rights reserved. =========================================================================== This source code belongs to Altair Engineering Inc. It is considered trade secret, and is not to be divulged or used or copied by parties who have not received written authorization from the owner, Altair Engineering Inc. ============================================================================ Title: Print JSON format print given obj or (if obj == NULL) print all EDB Author: Lothar Linhard ============================================================================ */ #ifndef EDBJSON_H #define EDBJSON_H #include #include "edbtypes.h" enum EdbPrintJsonFlags { EdbPrintJsonFUTF8 = 0x01, /* option -utf8 */ EdbPrintJsonFFlat = 0x02 /* option -flat */ }; struct EdbObjectList; /* -------------------------------------------------------------------------- */ EdbBool EdbPrintJsonObj(FILE* fp, Edb* edb, unsigned flags, EdbObject* eobj); EdbBool EdbPrintJsonList(FILE* fp, Edb* edb, unsigned flags, unsigned otypes); EdbBool EdbPrintJsonOList(FILE*fp, Edb* edb, unsigned flags, struct EdbObjectList*, unsigned otypes); EdbBool EdbPrintJsonListByName(FILE*, Edb*, unsigned flags, const char* name, unsigned otypes); EdbBool EdbPrintJson150(FILE*, Edb*, unsigned flags, int, const char* argv[]); EdbBool EdbPrintJsonEdb(FILE* fp, Edb* edb, unsigned flags); /* -------------------------------------------------------------------------- */ #endif