Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

chopws.h File Reference

#include <ECCS.h>
#include <eccsTestTools.h>
#include <fndOBJECT.h>
#include <fndSTRING.h>
#include <evhCALLBACK.h>
#include <evhTASK.h>
#include <eccsDB_ATTR.h>
#include "chopwsDefines.h"
#include "chopwsErrors.h"

Include dependency graph for chopws.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define DELETE_OBJECT(object)
#define DB_READ(var, type, attrName)
#define DB_READ_STRING(var, attrName)
#define DB_WRITE(value, type, attrName)

Functions

vltLOGICAL objectOk (eccsERROR_CLASS *object, const char *name)
ccsCOMPL_STAT freq2Interval (vltDOUBLE freq, ccsTIMEVAL *interval)


Define Documentation

#define DELETE_OBJECT object   
 

Value:

do                        \
                                  {                     \
                                  if (object != NULL)   \
                                      {                 \
                                      delete object;    \
                                      object = NULL;    \
                                      }                 \
                                  } while (0)

#define DB_READ var,
type,
attrName   
 

Value:

do                                                               \
  {                                                            \
        eccsDB_##type attrName##Attr(dbPoint, attrName);             \
  var = attrName##Attr;                                        \
  if (attrName##Attr.ErrStatus() == FAILURE)                   \
            {                                                        \
            ErrAdd(chopwsMOD, chopwsERR_DB_READ, __FILE_LINE__,        \
                   "configuration parameter", dbPoint, attrName);    \
            return FAILURE;                                          \
            }                                                        \
      } while (0)

#define DB_READ_STRING var,
attrName   
 

Value:

do                                                               \
  {                                                            \
        eccsDB_STRING attrName##Attr(dbPoint, attrName);             \
  strcpy(var, (const char *)attrName##Attr);                   \
  if (attrName##Attr.ErrStatus() == FAILURE)                   \
            {                                                        \
            ErrAdd(chopwsMOD, chopwsERR_DB_READ, __FILE_LINE__,        \
                   "configuration parameter", dbPoint, attrName);    \
            return FAILURE;                                          \
            }                                                        \
      } while (0)

#define DB_WRITE value,
type,
attrName   
 

Value:

do                                                               \
  {                                                            \
        eccsDB_##type attrName##Attr(dbPoint, attrName);             \
  attrName##Attr = value;                                      \
  if (attrName##Attr.ErrStatus() == FAILURE)                   \
            {                                                        \
            ErrAdd(chopwsMOD, chopwsERR_DB_WRITE, __FILE_LINE__,       \
                   "status parameter", dbPoint, attrName);           \
            return FAILURE;                                          \
            }                                                        \
      } while (0)


Function Documentation

vltLOGICAL objectOk eccsERROR_CLASS *    object,
const char *    name
 

ccsCOMPL_STAT freq2Interval vltDOUBLE    freq,
ccsTIMEVAL *    interval
 


Generated on Wed Dec 3 14:54:21 2003 for ATCS API by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001