Main Page | Modules | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

ProcSource Class Reference

#include <ProcBasic.hh>

Inherits DataProcessor.

List of all members.


Detailed Description

Data processor to produce constant outputs.

This class implements a basic data source processor which outputs constant values. The number of outputs can be chosen in the constructor. The values can be set through the class interface and are all initialized to 0.0.

The names of the output channels can be reconfigured using one of the constructors.

Outputs:


Public Member Functions

 ProcSource (const char *name, int index, int outputs, const char **chan)
 ProcSource (const char *name, int index, int outputs)
 ProcSource (const char *name, int index)
ProcFloat getValue (unsigned int output)
void setValue (unsigned int output, ProcFloat value)
void setValue (ProcFloat value)
virtual void update (void)


Member Function Documentation

ProcFloat ProcSource::getValue unsigned int  output  )  [inline]
 

This method can be used to retrieve the constant values output on the specified channel.

void ProcSource::setValue ProcFloat  value  )  [inline]
 

This method can be used to set the constant value output on the channel "output0". It is provided as a convenience function for instances with only one output.

void ProcSource::setValue unsigned int  output,
ProcFloat  value
[inline]
 

This method can be used to set the constant value output by a channel on the processor.


SimLib Reference Documentation