ADApp/pluginSrc/NDFileTIFF.cpp
asynStatus NDFileTIFF::populateAsciiFieldInfo(TIFFFieldInfo *fieldInfo, int fieldTag, const char *tagName)
{
    asynStatus status = asynSuccess;

    if (fieldInfo) {
        fieldInfo->field_tag = fieldTag;
        fieldInfo->field_readcount = 1;
        fieldInfo->field_writecount = 1;
        fieldInfo->field_type = TIFF_ASCII;
        fieldInfo->field_bit = FIELD_CUSTOM;
        fieldInfo->field_oktochange = 1;
        fieldInfo->field_passcount = 0;
        if (tagName) {
            fieldInfo->field_name = (char *)tagName;
        } else {
            status = asynError;
        }
    } else {
        status = asynError;
    }
  
    return status;

}
/**
 * Populate a TIFFFieldInfo structure with fields suitable for 
 * writing a ASCII TIFF custom tag.
 * \param[in] fieldInfo Pointer to a TIFFFieldInfo structure.
 * \param[in] fieldTag TIFF tag number to use.
 * \param[in] tagName Pointer to a char array for the tag name.
 */
Populate a TIFFFieldInfo structure with fields suitable for
writing a ASCII TIFF custom tag.
\param[in] fieldInfo Pointer to a TIFFFieldInfo structure.
\param[in] fieldTag TIFF tag number to use.
\param[in] tagName Pointer to a char array for the tag name.
Populate a TIFFFieldInfo structure with fields suitable for writing a ASCII TIFF custom tag . \ param [ in ] fieldInfo Pointer to a TIFFFieldInfo structure . \ param [ in ] fieldTag TIFF tag number to use . \ param [ in ] tagName Pointer to a char array for the tag name .
asynStatus NDFileTIFF::populateAsciiFieldInfo(TIFFFieldInfo *fieldInfo, int fieldTag, const char *tagName)
{
    asynStatus status = asynSuccess;
    if (fieldInfo) {
        fieldInfo->field_tag = fieldTag;
        fieldInfo->field_readcount = 1;
        fieldInfo->field_writecount = 1;
        fieldInfo->field_type = TIFF_ASCII;
        fieldInfo->field_bit = FIELD_CUSTOM;
        fieldInfo->field_oktochange = 1;
        fieldInfo->field_passcount = 0;
        if (tagName) {
            fieldInfo->field_name = (char *)tagName;
        } else {
            status = asynError;
        }
    } else {
        status = asynError;
    }
    return status;
}
asynStatus NDFileTIFF :: populateAsciiFieldInfo ( TIFFFieldInfo * fieldInfo , int fieldTag , const char * tagName ) { asynStatus status = asynSuccess ; if ( fieldInfo ) { fieldInfo -> field_tag = fieldTag ; fieldInfo -> field_readcount = 1 ; fieldInfo -> field_writecount = 1 ; fieldInfo -> field_type = TIFF_ASCII ; fieldInfo -> field_bit = FIELD_CUSTOM ; fieldInfo -> field_oktochange = 1 ; fieldInfo -> field_passcount = 0 ; if ( tagName ) { fieldInfo -> field_name = ( char * ) tagName ; } else { status = asynError ; } } else { status = asynError ; } return status ; }
Populate a TIFFFieldInfo structure with fields suitable for
 writing a ASCII TIFF custom tag.
Populate a TIFFFieldInfo structure with fields suitable for writing a ASCII TIFF custom tag .