/*
 * Go2ProfileBridgeValue.h
 * 
 * Gocator system communication library
 * Copyright (C) 2013 by LMI Technologies Inc.
 * 
 * Licensed under The MIT License.
 * Redistributions of files must retain the above copyright notice.
 */

#ifndef LMITECH_Z_GO2PROFILEBRIDGEVALUE_H_INCLUDED
#define LMITECH_Z_GO2PROFILEBRIDGEVALUE_H_INCLUDED

#include <Go2Measurement.h>
#include <Go2ProfileTypes.h>
#include <Go2ApiBegin.h>

/*
 * Go2ProfileBridgeValue Class 
 */

typedef Go2Measurement Go2ProfileBridgeValue;           // Represents profile bridge value configuration.

GO2_EXPORT(Go2Status) Go2ProfileBridgeValue_SetId(Go2ProfileBridgeValue measurement, Go2UInt32 id); //
//
//  Description:
//      Sets the unique measurement identifier for the measurement.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object. 
//      id - Unique measurement identifier. 
//  Returns:
//      Operation status. 

GO2_EXPORT(Go2UInt32) Go2ProfileBridgeValue_Id(Go2ProfileBridgeValue measurement); //
//
//  Description:
//      Gets the unique measurement identifier for the measurement.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object. 
//  Returns:
//      Unique measurement identifier 

GO2_EXPORT(Go2Status) Go2ProfileBridgeValue_SetName(Go2ProfileBridgeValue measurement, const Go2Char* name); //
//
//  Description:
//      Sets the descriptive name for the measurement.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object. 
//      name - Descriptive name. 
//  Returns:
//      Operation status. 
 
GO2_EXPORT(Go2Status) Go2ProfileBridgeValue_Name(Go2ProfileBridgeValue measurement, Go2Char* name, Go2UInt32 capacity); //
//
//  Description:
//      Gets the descriptive name for the measurement.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object. 
//      name - Receives descriptive name. 
//      capacity - Capacity of name buffer. 
//  Returns:
//      Operation status. 

GO2_EXPORT(Go2UInt32) Go2ProfileBridgeValue_SourceOptionCount(Go2ProfileBridgeValue measurement); //
//
//  Description:
//      Gets the number of profile source options for the measurement.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object. 
//  Returns:
//      Count of source options.

GO2_EXPORT(Go2ProfileSource) Go2ProfileBridgeValue_SourceOptionAt(Go2ProfileBridgeValue measurement, Go2UInt32 index); //
//
//  Description:
//      Gets the profile source option at the specified index.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object. 
//      index - Selected profile source option.
//  Returns:
//      Profile source option. 

GO2_EXPORT(Go2Status) Go2ProfileBridgeValue_SetSource(Go2ProfileBridgeValue measurement, Go2ProfileSource source); //
//
//  Description:
//      Sets the source for profile data used in this measurement.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object. 
//      source - Profile source.
//  Returns:
//      Operation status.

GO2_EXPORT(Go2ProfileSource) Go2ProfileBridgeValue_Source(Go2ProfileBridgeValue measurement); //
//
//  Description:
//      Gets the source for profile data used in this measurement.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object. 
//  Returns: 
//      Profile source. 
 
GO2_EXPORT(Go2Status) Go2ProfileBridgeValue_SetDecisionMin(Go2ProfileBridgeValue measurement, Go2Double min); //
//
//  Description:
//      Sets the decision threshold minimum value.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object. 
//      min - Decision threshold minimum value. 
//  Returns:
//      Operation status.
//  Remarks: 
//      A decision is said to pass if the measurement value is between the minimum and maximum thresholds.
 
GO2_EXPORT(Go2Double) Go2ProfileBridgeValue_DecisionMin(Go2ProfileBridgeValue measurement); //
//
//  Description:
//      Gets the decision threshold minimum value.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object. 
//  Returns:
//      Decision threshold minimum.
//  Remarks: 
//      A decision is said to pass if the measurement value is between the minimum and maximum thresholds.
 
GO2_EXPORT(Go2Status) Go2ProfileBridgeValue_SetDecisionMax(Go2ProfileBridgeValue measurement, Go2Double max); //
//
//  Description:
//      Sets the decision threshold maximum value.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object. 
//      max - Decision threshold maximum value. 
//  Returns:
//      Operation status.
//  Remarks: 
//      A decision is said to pass if the measurement value is between the minimum and maximum thresholds.
 
GO2_EXPORT(Go2Double) Go2ProfileBridgeValue_DecisionMax(Go2ProfileBridgeValue measurement); //
//
//  Description:
//      Gets the decision threshold maximum value.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object. 
//  Returns:
//      Decision threshold maximum.
//  Remarks: 
//      A decision is said to pass if the measurement value is between the minimum and maximum thresholds.
 
GO2_EXPORT(Go2Status) Go2ProfileBridgeValue_EnableHold(Go2ProfileBridgeValue measurement, Go2Bool enable); //
//
//  Description:
//      Enables measurement value hold.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object.
//      enable - GO2_TRUE to enable, or GO2_FALSE to disable.
//  Returns:
//      Operation status.

GO2_EXPORT(Go2Bool) Go2ProfileBridgeValue_HoldEnabled(Go2ProfileBridgeValue measurement); //
//
//  Description:
//      Reports whether value hold is currently enabled.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object. 
//  Returns:
//      GO2_TRUE if enabled, or GO2_FALSE if disabled.

GO2_EXPORT(Go2Status) Go2ProfileBridgeValue_EnableSmoothing(Go2ProfileBridgeValue measurement, Go2Bool enable); //
//
//  Description:
//      Enables measurement value smoothing.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object.
//      enable - GO2_TRUE to enable, or GO2_FALSE to disable.
//  Returns:
//      Operation status.

GO2_EXPORT(Go2Bool) Go2ProfileBridgeValue_SmoothingEnabled(Go2ProfileBridgeValue measurement); //
//
//  Description:
//      Reports whether value smoothing is currently enabled.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object. 
//  Returns:
//      GO2_TRUE if enabled, or GO2_FALSE if disabled.

GO2_EXPORT(Go2UInt32) Go2ProfileBridgeValue_SmoothingWindowMin(Go2ProfileBridgeValue measurement); //
//
//  Description:
//      Gets the minimum smoothing window value.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object. 
//  Returns:
//      Minimum smoothing window value.

GO2_EXPORT(Go2UInt32) Go2ProfileBridgeValue_SmoothingWindowMax(Go2ProfileBridgeValue measurement); //
//
//  Description:
//      Gets the maximum smoothing window value.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object. 
//  Returns:
//      Maximum smoothing window value.

GO2_EXPORT(Go2Status) Go2ProfileBridgeValue_SetSmoothingWindow(Go2ProfileBridgeValue measurement, Go2UInt32 window); //
//
//  Description:
//      Sets the smoothing window value.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object. 
//      window - Smoothing window value.
//  Returns:
//      Operation status.

GO2_EXPORT(Go2UInt32) Go2ProfileBridgeValue_SmoothingWindow(Go2ProfileBridgeValue measurement); //
//
//  Description:
//      Gets the smoothing window value.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object. 
//  Returns:
//      Smoothing window value.

GO2_EXPORT(Go2Status) Go2ProfileBridgeValue_SetWindowSize(Go2ProfileBridgeValue measurement, Go2Double size); //
//
//  Description:
//      Sets the percentage of profile points in the window.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object. 
//      size - Percentage of points in the window.
//  Returns:
//      Operation status.
 
GO2_EXPORT(Go2Double) Go2ProfileBridgeValue_WindowSize(Go2ProfileBridgeValue measurement); //
//
//  Description:
//      Gets the percentage of profile points in the window.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object. 
//  Returns:
//      Percentage of points in the window.

GO2_EXPORT(Go2Status) Go2ProfileBridgeValue_SetWindowSkip(Go2ProfileBridgeValue measurement, Go2Double skip); //
//
//  Description:
//      Sets the percentage of profile points to skip to find the starting point in the window.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object. 
//      skip - Percentage of points to skip.
//  Returns:
//      Operation status.

GO2_EXPORT(Go2Double) Go2ProfileBridgeValue_WindowSkip(Go2ProfileBridgeValue measurement); //
//
//  Description:
//      Gets the percentage of profile points to skip to find the starting point in the window.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object. 
//  Returns:
//      Percentage of points to skip.

GO2_EXPORT(Go2Status) Go2ProfileBridgeValue_SetMaxInvalid(Go2ProfileBridgeValue measurement, Go2Double max); //
//
//  Description:
//      Sets the percentage of profile points which can be invalid before the measurement is invalid.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object. 
//      max - Percentage of invalid points.
//  Returns:
//      Operation status.

GO2_EXPORT(Go2Double) Go2ProfileBridgeValue_MaxInvalid(Go2ProfileBridgeValue measurement); //
//
//  Description:
//      Gets the percentage of profile points which can be invalid before the measurement is invalid.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object. 
//  Returns:
//      Percentage of invalid points.

GO2_EXPORT(Go2Status) Go2ProfileBridgeValue_EnableNormalize(Go2ProfileBridgeValue measurement, Go2Bool enable); //
//
//  Description:
//      Enables tilt normalization.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object. 
//      enable - GO2TRUE to enable, GO2FALSE to disable.
//  Returns:
//      Operation status.
 
GO2_EXPORT(Go2Bool) Go2ProfileBridgeValue_NormalizeEnabled(Go2ProfileBridgeValue measurement); //
//
//  Description:
//      Determines if tilt normalization is enabled.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object. 
//  Returns:
//      GO2TRUE if enabled, GO2FALSE if disabled.




GO2_EXPORT(Go2Double) Go2ProfileBridgeValue_Offset(Go2ProfileBridgeValue measurement); //
//
//  Description:
//      Gets the measurement value offset.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object.
//  Returns:
//      Measurement value offset.

GO2_EXPORT(Go2Status) Go2ProfileBridgeValue_SetOffset(Go2ProfileBridgeValue measurement, Go2Double offset); //
//
//  Description:
//      Sets the measurement value offset.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object.
//      offset - Offset factor.
//  Returns:
//      Operation status.

GO2_EXPORT(Go2Double) Go2ProfileBridgeValue_Scale(Go2ProfileBridgeValue measurement); //
//
//  Description:
//      Gets the measurement value scale factor.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object.
//  Returns:
//      Measurement value scale factor.

GO2_EXPORT(Go2Status) Go2ProfileBridgeValue_SetScale(Go2ProfileBridgeValue measurement, Go2Double scale); //
//
//  Description:
//      Sets the measurement value scale factor.
//  Arguments:
//      measurement - Go2ProfileBridgeValue object.
//      scale - Scale factor.
//  Returns:
//      Operation status.

GO2_EXPORT(Go2UInt32) Go2ProfileBridgeValue_LinkOptionAt(Go2ProfileBridgeValue measurement, Go2UInt32 index); //
//
//  Description:
//      Gets the link-able measurement id at the specified index. 
//    Arguments:
//      measurement - Go2PartMeasurement object.
//  Returns:
//      The link-able measurement ID at the specified index.

GO2_EXPORT(Go2UInt32) Go2ProfileBridgeValue_LinkOptionCount(Go2ProfileBridgeValue measurement); //
//
//  Description:
//      Gets the number of link-able measurement IDs.
//  Arguments:
//      measurement - Go2PartMeasurement object.
//  Returns:
//      The link-able measurement count.

GO2_EXPORT(Go2UInt32) Go2ProfileBridgeValue_Link(Go2ProfileBridgeValue measurement);  //
//
//  Description:
//      Gets the measurement id of the linked measurement.
//  Arguments:
//      measurement - Go2PartMeasurement object.
//  Returns:
//      The linked measurement ID.

GO2_EXPORT(Go2Status) Go2ProfileBridgeValue_SetLink(Go2ProfileBridgeValue measurement, Go2UInt32 link);  //
//
//  Description:
//      Sets the measurement id to which this measurement should link. 
//       Linked measurements must:
//          -link to a valid measurement id
//          -not link to themselves
//          -not link to a measurement that is already linked
//          -link only to measurements of the same basic type (eg, all PartOpening_? measurements)
//    Arguments:
//      measurement - Go2PartMeasurement object.
//      link - Measurement id to link to.
//  Returns:
//      Operation status.

GO2_EXPORT(Go2Bool) Go2ProfileBridgeValue_LinkEnabled(Go2ProfileBridgeValue measurement);   //
//
//  Description:
//      Enables measurement linking.  When enabled, another measurement of the same base type can be 
//          linked, provided that it is a different measurement.
//          E.g. A Go2PartOpeningX and Go2PartOpeningY measurement can link, but two Go2PartOpeningX measurements can not be linked.
//    Arguments:
//      measurement - Go2PartMeasurement object.
//    Returns:
//      enable - GO2_TRUE to enable, or GO2_FALSE to disable.

GO2_EXPORT(Go2Status) Go2ProfileBridgeValue_EnableLink(Go2ProfileBridgeValue measurement, Go2Bool enable);   //
//
//  Description:
//      Enables or disables measurement linking.
//  Arguments:
//      measurement - Go2PartMeasurement object.
//      enable - Use GO2_TRUE to enable linking and GO2_FALSE to disable it.
//  Returns:
//      Operation status.

#include <Go2ApiEnd.h>
#endif
