HI_Describe

HI_Describe -- describes a history's current configuration.

Syntax

#include <cogent/cogent.h>

ST_STATUS HI_Describe(IP_hTASK historian, char* retbuf, int buflen, char* histname);

Arguments

historian

The task pointer to the Cascade Historian program.

retbuf

A required buffer containing an error message.

buflen

The length in bytes of retbuf, with a minimum as described below.

histname

The name of a history.

Returns

ST_OK on success. Otherwise ST_ERROR, and the retbuf will contain a NULL-terminated character string with an error message.

Description

This function returns a description of the current configuration of a history in retbuf, which is not optional.

The information returned will be truncated at 1000 bytes.

The format of the return is:

    (describe "histname" "directory" "basename" "extension" ndigits
    "full_filename" flags deadband maxvalues)

Any undefined string values are returned as "", not the string "nil". The following values apply specifically:

The buflen must be at least the sum of:

          strlen(histname)
        + (strlen(directory) * 2)
        + (strlen(basename) * 2)
        + (strlen(extension) * 2)
        + (strlen(full_filename) * 2)
        + 64

This function corresponds to the Cascade Historian describe command and the hist_describe dynamic library function..

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.