Wavecom W-BitView V2.5.00 User Manual
Page 74
68
Custom Library
BitView Manual V2.5.00 WAVECOM W-BV
private string dummyCalculation = string.Empty;
///
/// Optional result form this function! DummyCalculation. Put all results into this
category
///
[Category(PropertyCategory.Calculation)]
[Description("Description of DummyCalculation goes here. Here: number of output
bits.")]
[DisplayName("Dummy Calc.")]
public string DummyCalculation
{
get
{
return (dummyCalculation);
}
}
// add more Calculation properties here
// ...
private int dummyParameter = 0;
///
/// Optional! Dummy Parameter. Put all input parameters for the calculation into this
category
///
[Category(PropertyCategory.Configuration)]
[Description("Description of DummyParameter goes here. Here: not used.")]
[DefaultValue(0)]
[DisplayName("Dummy Parameter")]
public int DummyParameter
{
get
{
return (dummyParameter);
}
set
{
dummyParameter = value;
}
}
// add more Configuration properties here
// ...
#endregion
#region Constructor
///
/// Constructor
///
public CustomLibFunction()
{
// add initialisation code if necessary
}
#endregion
#region calculation function
///
/// // THE calculate function. Do not change name or parameter! This function will be
searched for
/// by reflection and called for execution, when this library is added to an
analysis.
///
public BitArray Calculate(BitArray buf)
{
if (buf == null)
return (null);
if (buf.Count <= 0)
{
outbox.Length = 0;
return (outbox);