... overwrite the default State method

This section shows how to overwrite the default State method in the Tango Server.It is useful for adding some check functions looking at the state.

Example for the motors:

Add to the header file from your server (server_name.h):

Tango::DevState dev_state();

Add to the server file (server_name.cpp):

Tango::DevState OmsVme58::dev_state(){

    check_move();
    Tango::Device_3Impl::dev_state();

    return device_state;
}