Wavecom W-BitView V2.5.00 User Manual

Page 74

Advertising
background image

68

Custom Library

BitView Manual V2.5.00 WAVECOM W-BV


private string dummyCalculation = string.Empty;
/// <summary>
/// Optional result form this function! DummyCalculation. Put all results into this
category
/// </summary>
[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;
/// <summary>
/// Optional! Dummy Parameter. Put all input parameters for the calculation into this
category
/// </summary>
[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
/// <summary>
/// Constructor
/// </summary>
public CustomLibFunction()
{
// add initialisation code if necessary
}
#endregion

#region calculation function
/// <summary>
/// // 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.
/// </summary>
public BitArray Calculate(BitArray buf)
{
if (buf == null)
return (null);

if (buf.Count <= 0)
{
outbox.Length = 0;
return (outbox);

Advertising
This manual is related to the following products: