ICP  1
Functions | Variables
isiscrpt.cpp File Reference
#include "stdafx.h"
#include "isiscrpt.h"
#include "isisraw.h"
#include "isiscrpt_items.h"

Go to the source code of this file.

Functions

static const char * getInstAbrv (const char *inst_name)
 
int spacePadCopy (char *output, const char *input, int output_size)
 
int spacePadCopyVa (char *output, int output_size, const char *format,...)
 
int spaceTrimCopy (char *output, int output_size, const char *input, int input_size)
 

Variables

static const char * inst_abrv_mappings [][2]
 

Function Documentation

static const char* getInstAbrv ( const char *  inst_name)
static

Definition at line 33 of file isiscrpt.cpp.

References inst_abrv_mappings, and NULL_TERMINATE.

Referenced by ISISCRPT_STRUCT::setInstName().

int spacePadCopy ( char *  output,
const char *  input,
int  output_size 
)
int spacePadCopyVa ( char *  output,
int  output_size,
const char *  format,
  ... 
)

Definition at line 142 of file isiscrpt.cpp.

Referenced by ISISinstrumentControl::writeJournal().

int spaceTrimCopy ( char *  output,
int  output_size,
const char *  input,
int  input_size 
)

Definition at line 161 of file isiscrpt.cpp.

Referenced by ISISRAW::sendToCRPT().

Variable Documentation

const char* inst_abrv_mappings[][2]
static
Initial value:
= {
{ "SURF", "SRF" },
{ "INES", "INS" },
{ "CRISP", "CSP" },
{ "IRIS", "IRS" },
{ "MAPS", "MAP" },
{ "MARI", "MAR" },
{ "MERLIN", "MER" },
{ "TOSCA", "TSC" },
{ "HRPD", "HRP" },
{ "POLARIS", "POL" },
{ "SANDALS", "SLS" },
{ "PRISMA", "PRS" },
{ "ROTAX", "RTX" },
{ "VESUVIO", "VES" },
{ NULL, NULL }
}

mapping if SHORTNAME environment variable is not defined for instruments that have a fullname of 3 characters this is not needed also for nexus (muon) instruments short name = long name and so no mapping this is ignored is UseFullInstNameForFiles is defined in icp_config.xml

Definition at line 11 of file isiscrpt.cpp.

Referenced by getInstAbrv().