![]() |
Scanframe Modular Application 0.1.0
|
#include <GmiServer.h>
Classes | |
struct | ExtraInfo |
Structure placed in the TVariable's Data field for fast access to information. More... | |
Public Member Functions | |
TMotionServer (gmi::Controller *controller, int device_nr=-1, const char *dev_name=nullptr) | |
Constructor. | |
~TMotionServer () | |
Destructor. | |
void | AddPropertyPages (PropertySheetDialog *sheet) |
Add the property sheets for this server to the given dialog. | |
const Variable & | GetVariable (int pid) |
Gets the owner variable that corresponds the motion interfaces parameter id. | |
bool | IsLocked () const |
Returns true when all parameters are locked. | |
void | SetLocked (bool flag) |
Locks the variables by making them all read only. | |
Protected Member Functions | |
unsigned | GetAxisCount () |
Gets the amount of axes for this implementation. | |
std::string | GetAxisName (int axis) |
Gets the axis name of the given axis. | |
void | CreateInterface () |
Create interface parameters at construction once. | |
void | DestroyInterface () |
Remove all parameters and results. | |
unsigned | VarListFind (int id) const |
Looks up a parameter which is represented the interface by the given id. | |
bool | CreateVariable (Variable *&var, gmi::ParamInfo &info, std::string setup) |
Creates a variable with an extra info structure attached. | |
void | DestroyVariable (Variable *var) |
Destroys a variable including the attached extra info structure. | |
std::string | CreateSetupString (const gmi::ParamInfo &info, long vid) |
Creates a setup string from the passed parameter info structure. | |
void | EvaluateInterfaceParams () |
Evaluate parameters after the configuration has changed. | |
std::string | GetNameOfs (const gmi::ParamInfo &info) |
Gets the name of the channel using the device name. | |
unsigned | ResListFind (int id) const |
Looks up a result data which is represented the interface id. | |
ResultData * | CreateResultData (gmi::ResultInfo &info, std::string setup) |
Creates a variable with an extra info structure attached. | |
void | DestroyResultData (ResultData *var) |
Destroys a variable including the attached extra info structure. | |
std::string | CreateSetupString (const gmi::ResultInfo &info, long vid) |
Creates a setup string from the passed result info structure. | |
void | EvaluateInterfaceResults () |
Evaluate results after the configuration has changed. | |
std::string | GetNameOfs (const gmi::ResultInfo &info) |
Returns the name of the channel using the device name. | |
ExtraInfo * | Cast (Variable *var) const |
Easy to use function to access the extra info from a variable. | |
ExtraInfo * | Cast (ResultData *var) const |
Easy to use function to access the extra info from a result data. | |
void | ClearValidations () |
Overloaded from InfoServer. | |
void | ServerVarHandler (Variable::EEvent event, const Variable &caller, Variable &linker, bool sameinst) |
void | ServerResHandler (ResultData::EEvent event, const ResultData &caller, ResultData &link, const Range &rng, bool same_inst) |
void | ParamNotify (int id) |
void | ResultNotify (int id) |
void | CheckReadOnly () |
Static Protected Member Functions | |
static void | ParamNotifyProc (void *data, int id) |
static void | ResultNotifyProc (void *data, int id) |
Protected Attributes | |
gmi::Controller * | Controller |
Holds the acquisition implementation. | |
Variable | VImplementation |
Variable for selecting an implementation. | |
VariableLinkHandler< TMotionServer > | SrvVarLink |
TVariable::TPtrVector | VarList |
TResultDataLinkHandler< TMotionServer > | SrvResLink |
TResultData::TPtrVector | ResList |
int | DeviceNr |
mstring | DeviceName |
bool | FLock |
long | FHandledParamId |
int | VarHandlerEntryCount |
const TVariable * | VMovePos |
const TVariable * | VMoveVel |
Static Protected Attributes | |
static unsigned | ServerMap |
Friends | |
class | MotionVariablePropertyPage |
|
explicit |
Constructor.
controller | |
device_nr | |
dev_name |
sf::TMotionServer::~TMotionServer | ( | ) |
Destructor.
void sf::TMotionServer::AddPropertyPages | ( | PropertySheetDialog * | sheet | ) |
Add the property sheets for this server to the given dialog.
|
protected |
Easy to use function to access the extra info from a result data.
Easy to use function to access the extra info from a variable.
|
protected |
|
protected |
Overloaded from InfoServer.
|
protected |
Create interface parameters at construction once.
|
protected |
Creates a variable with an extra info structure attached.
info | |
setup |
|
protected |
Creates a setup string from the passed parameter info structure.
info | |
vid |
|
protected |
Creates a setup string from the passed result info structure.
info | |
vid |
|
protected |
Creates a variable with an extra info structure attached.
var | |
info | |
setup |
|
protected |
Remove all parameters and results.
|
protected |
Destroys a variable including the attached extra info structure.
var |
|
protected |
Destroys a variable including the attached extra info structure.
var |
|
protected |
Evaluate parameters after the configuration has changed.
|
protected |
Evaluate results after the configuration has changed.
|
protected |
Gets the amount of axes for this implementation.
|
protected |
Gets the axis name of the given axis.
axis | Axis number as in #EAxisLocation |
|
protected |
Gets the name of the channel using the device name.
info | Parameter in formation. |
|
protected |
Returns the name of the channel using the device name.
info |
const Variable & sf::TMotionServer::GetVariable | ( | int | pid | ) |
Gets the owner variable that corresponds the motion interfaces parameter id.
pid | Parameter id |
|
inline |
Returns true when all parameters are locked.
|
protected |
|
staticprotected |
|
protected |
Looks up a result data which is represented the interface id.
id |
|
protected |
|
staticprotected |
|
protected |
|
protected |
void sf::TMotionServer::SetLocked | ( | bool | flag | ) |
Locks the variables by making them all read only.
flag | Locking state. |
|
protected |
Looks up a parameter which is represented the interface by the given id.
id |
|
friend |
|
protected |
Holds the acquisition implementation.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |