Copyright (C) Kevin Larke 2009-2020

This file is part of libcm.

libcm is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

libcm is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

See the GNU General Public License distributed with the libcm package or look here: .


cmRptFile : The cmRptFile provides a cmRpt class which outputs to a file.

enum
{
  kOkRfRC = cmOkRC,
  kFileFailRfRC
};

typedef unsigned   cmRfRC_t;
typedef cmHandle_t cmRptFileH_t;

extern cmRptFileH_t cmRptFileNullHandle;

cmRfRC_t cmRptFileCreate( cmCtx_t* ctx, cmRptFileH_t* hp, const cmChar_t* printFn, const cmChar_t* errorFn );
cmRfRC_t cmRptFileClose( cmRptFileH_t* hp );

bool     cmRptFileIsValid( cmRptFileH_t h );

cmRpt_t* cmRptFileRpt( cmRptFileH_t h );