Namespaces | Defines

baci.h File Reference

#include "acsutil.h"
#include "baciExport.h"
#include "acsutilTimeStamp.h"
#include "baciThread.h"
#include "baciTypes.h"
#include "baciValue.h"
#include "baciCORBA.h"
#include "baciRegistrar.h"
#include "logging.h"
#include "baciError.h"
#include "acserr.h"
#include "ACSErrTypeMonitor.h"
#include "ACSErrTypeOK.h"
#include <baciErrTypeProperty.h>
#include <algorithm>
#include <map>
#include <vector>
#include <deque>
#include "baciBACIAction.h"
#include "baciBACICallback.h"
#include "baciBACIMonitor.h"
#include "baciBACIProperty.h"
#include "baciBACIComponent.h"
#include "archiveeventsArchiveSupplier.h"
Include dependency graph for baci.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  baci

Defines

#define ACS_ARCHIVE(device, param, type, value)   ArchiveSupplierSingleton::Instance().sendEvent(0, getTimeStamp(), device, param, value);
#define ACS_ARCHIVE_PRIORITY(device, param, type, value, prio)

Detailed Description

Header file BACI.


Define Documentation

#define ACS_ARCHIVE (   device,
  param,
  type,
  value 
)    ArchiveSupplierSingleton::Instance().sendEvent(0, getTimeStamp(), device, param, value);

ACS_ARCHIVE is a macro used to log something to the archive. As far as I know, it currently does not actually send anything to the real ALMA archive.

Parameters:
device Some device. Presumably this is a component's name. String.
param Name of the property. String.
type Type of the value to be archived???
value Value to be archived. Most simple CORBA types should work fine for this as sendEvent is templated. I.e., value could be "joe", 33ULL, 3.14, etc
#define ACS_ARCHIVE_PRIORITY (   device,
  param,
  type,
  value,
  prio 
)
Value:
{ \
CORBA::Any any; \
value.getAny(any); \
ArchiveSupplierSingleton::Instance().send_event(prio, getTimeStamp(), device, param, any, "");  \
}

ACS_ARCHIVE_PRIORITY is a macro used to log something to the archive with a given priority. As far as I know, it currently does not actually send anything to the real ALMA archive.

Parameters:
device Some device. Presumably this is a component's name. String.
param Name of the property. String.
type Type of the value to be archived???
value BACIValue object to be archived.
prio Priority at which the value is logged.