// **********************************************************************
//
// Copyright (c) 2003-2016 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.6.3
//
// <auto-generated>
//
// Generated from file `obsControl.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//

#include <obsControl.h>
#include <IceUtil/PushDisableWarnings.h>
#include <Ice/LocalException.h>
#include <Ice/ObjectFactory.h>
#include <Ice/Outgoing.h>
#include <Ice/OutgoingAsync.h>
#include <Ice/BasicStream.h>
#include <IceUtil/Iterator.h>
#include <IceUtil/PopDisableWarnings.h>

#ifndef ICE_IGNORE_VERSION
#   if ICE_INT_VERSION / 100 != 306
#       error Ice version mismatch!
#   endif
#   if ICE_INT_VERSION % 100 > 50
#       error Beta header file detected
#   endif
#   if ICE_INT_VERSION % 100 < 3
#       error Ice patch level mismatch!
#   endif
#endif

namespace
{

namespace
{

const ::std::string __sharknir__obsControl__Sequencer__setupMotion_name = "setupMotion";

const ::std::string __sharknir__obsControl__Sequencer__setupMotionDict_name = "setupMotionDict";

const ::std::string __sharknir__obsControl__Sequencer__setupTracking_name = "setupTracking";

const ::std::string __sharknir__obsControl__Sequencer__setupCalibration_name = "setupCalibration";

const ::std::string __sharknir__obsControl__motionControl__setupMotion_name = "setupMotion";

const ::std::string __sharknir__obsControl__trackControl__setupTracking_name = "setupTracking";

const ::std::string __sharknir__obsControl__calibrationControl__setupCalibration_name = "setupCalibration";

}

}
::IceProxy::Ice::Object* ::IceProxy::sharknir::obsControl::upCast(::IceProxy::sharknir::obsControl::Sequencer* p) { return p; }

void
::IceProxy::sharknir::obsControl::__read(::IceInternal::BasicStream* __is, ::IceInternal::ProxyHandle< ::IceProxy::sharknir::obsControl::Sequencer>& v)
{
    ::Ice::ObjectPrx proxy;
    __is->read(proxy);
    if(!proxy)
    {
        v = 0;
    }
    else
    {
        v = new ::IceProxy::sharknir::obsControl::Sequencer;
        v->__copyFrom(proxy);
    }
}

::Ice::Int
IceProxy::sharknir::obsControl::Sequencer::setupMotion(const ::sharknir::dictNonSciAssembly& __p_dictNonSci, const ::std::string& __p_strSetup, const ::Ice::Context* __ctx)
{
    __checkTwowayOnly(__sharknir__obsControl__Sequencer__setupMotion_name);
    ::IceInternal::Outgoing __og(this, __sharknir__obsControl__Sequencer__setupMotion_name, ::Ice::Idempotent, __ctx);
    try
    {
        ::IceInternal::BasicStream* __os = __og.startWriteParams(::Ice::DefaultFormat);
        __os->write(__p_dictNonSci);
        __os->write(__p_strSetup);
        __og.endWriteParams();
    }
    catch(const ::Ice::LocalException& __ex)
    {
        __og.abort(__ex);
    }
    if(!__og.invoke())
    {
        try
        {
            __og.throwUserException();
        }
        catch(const ::Ice::UserException& __ex)
        {
            ::Ice::UnknownUserException __uue(__FILE__, __LINE__, __ex.ice_name());
            throw __uue;
        }
    }
    ::Ice::Int __ret;
    ::IceInternal::BasicStream* __is = __og.startReadParams();
    __is->read(__ret);
    __og.endReadParams();
    return __ret;
}

::Ice::AsyncResultPtr
IceProxy::sharknir::obsControl::Sequencer::begin_setupMotion(const ::sharknir::dictNonSciAssembly& __p_dictNonSci, const ::std::string& __p_strSetup, const ::Ice::Context* __ctx, const ::IceInternal::CallbackBasePtr& __del, const ::Ice::LocalObjectPtr& __cookie)
{
    __checkAsyncTwowayOnly(__sharknir__obsControl__Sequencer__setupMotion_name);
    ::IceInternal::OutgoingAsyncPtr __result = new ::IceInternal::OutgoingAsync(this, __sharknir__obsControl__Sequencer__setupMotion_name, __del, __cookie);
    try
    {
        __result->prepare(__sharknir__obsControl__Sequencer__setupMotion_name, ::Ice::Idempotent, __ctx);
        ::IceInternal::BasicStream* __os = __result->startWriteParams(::Ice::DefaultFormat);
        __os->write(__p_dictNonSci);
        __os->write(__p_strSetup);
        __result->endWriteParams();
        __result->invoke();
    }
    catch(const ::Ice::Exception& __ex)
    {
        __result->abort(__ex);
    }
    return __result;
}

#ifdef ICE_CPP11

::Ice::AsyncResultPtr
IceProxy::sharknir::obsControl::Sequencer::__begin_setupMotion(const ::sharknir::dictNonSciAssembly& __p_dictNonSci, const ::std::string& __p_strSetup, const ::Ice::Context* __ctx, const ::IceInternal::Function<void (::Ice::Int)>& __response, const ::IceInternal::Function<void (const ::Ice::Exception&)>& __exception, const ::IceInternal::Function<void (bool)>& __sent)
{
    class Cpp11CB : public ::IceInternal::Cpp11FnCallbackNC
    {
    public:

        Cpp11CB(const ::std::function<void (::Ice::Int)>& responseFunc, const ::std::function<void (const ::Ice::Exception&)>& exceptionFunc, const ::std::function<void (bool)>& sentFunc) :
            ::IceInternal::Cpp11FnCallbackNC(exceptionFunc, sentFunc),
            _response(responseFunc)
        {
            CallbackBase::checkCallback(true, responseFunc || exceptionFunc != nullptr);
        }

        virtual void completed(const ::Ice::AsyncResultPtr& __result) const
        {
            ::sharknir::obsControl::SequencerPrx __proxy = ::sharknir::obsControl::SequencerPrx::uncheckedCast(__result->getProxy());
            ::Ice::Int __ret;
            try
            {
                __ret = __proxy->end_setupMotion(__result);
            }
            catch(const ::Ice::Exception& ex)
            {
                Cpp11FnCallbackNC::exception(__result, ex);
                return;
            }
            if(_response != nullptr)
            {
                _response(__ret);
            }
        }
    
    private:
        
        ::std::function<void (::Ice::Int)> _response;
    };
    return begin_setupMotion(__p_dictNonSci, __p_strSetup, __ctx, new Cpp11CB(__response, __exception, __sent));
}
#endif

::Ice::Int
IceProxy::sharknir::obsControl::Sequencer::end_setupMotion(const ::Ice::AsyncResultPtr& __result)
{
    ::Ice::AsyncResult::__check(__result, this, __sharknir__obsControl__Sequencer__setupMotion_name);
    ::Ice::Int __ret;
    if(!__result->__wait())
    {
        try
        {
            __result->__throwUserException();
        }
        catch(const ::Ice::UserException& __ex)
        {
            throw ::Ice::UnknownUserException(__FILE__, __LINE__, __ex.ice_name());
        }
    }
    ::IceInternal::BasicStream* __is = __result->__startReadParams();
    __is->read(__ret);
    __result->__endReadParams();
    return __ret;
}

::Ice::Int
IceProxy::sharknir::obsControl::Sequencer::setupMotionDict(const ::sharknir::dictSetup& __p_dSetup, const ::Ice::Context* __ctx)
{
    __checkTwowayOnly(__sharknir__obsControl__Sequencer__setupMotionDict_name);
    ::IceInternal::Outgoing __og(this, __sharknir__obsControl__Sequencer__setupMotionDict_name, ::Ice::Idempotent, __ctx);
    try
    {
        ::IceInternal::BasicStream* __os = __og.startWriteParams(::Ice::DefaultFormat);
        __os->write(__p_dSetup);
        __og.endWriteParams();
    }
    catch(const ::Ice::LocalException& __ex)
    {
        __og.abort(__ex);
    }
    if(!__og.invoke())
    {
        try
        {
            __og.throwUserException();
        }
        catch(const ::Ice::UserException& __ex)
        {
            ::Ice::UnknownUserException __uue(__FILE__, __LINE__, __ex.ice_name());
            throw __uue;
        }
    }
    ::Ice::Int __ret;
    ::IceInternal::BasicStream* __is = __og.startReadParams();
    __is->read(__ret);
    __og.endReadParams();
    return __ret;
}

::Ice::AsyncResultPtr
IceProxy::sharknir::obsControl::Sequencer::begin_setupMotionDict(const ::sharknir::dictSetup& __p_dSetup, const ::Ice::Context* __ctx, const ::IceInternal::CallbackBasePtr& __del, const ::Ice::LocalObjectPtr& __cookie)
{
    __checkAsyncTwowayOnly(__sharknir__obsControl__Sequencer__setupMotionDict_name);
    ::IceInternal::OutgoingAsyncPtr __result = new ::IceInternal::OutgoingAsync(this, __sharknir__obsControl__Sequencer__setupMotionDict_name, __del, __cookie);
    try
    {
        __result->prepare(__sharknir__obsControl__Sequencer__setupMotionDict_name, ::Ice::Idempotent, __ctx);
        ::IceInternal::BasicStream* __os = __result->startWriteParams(::Ice::DefaultFormat);
        __os->write(__p_dSetup);
        __result->endWriteParams();
        __result->invoke();
    }
    catch(const ::Ice::Exception& __ex)
    {
        __result->abort(__ex);
    }
    return __result;
}

#ifdef ICE_CPP11

::Ice::AsyncResultPtr
IceProxy::sharknir::obsControl::Sequencer::__begin_setupMotionDict(const ::sharknir::dictSetup& __p_dSetup, const ::Ice::Context* __ctx, const ::IceInternal::Function<void (::Ice::Int)>& __response, const ::IceInternal::Function<void (const ::Ice::Exception&)>& __exception, const ::IceInternal::Function<void (bool)>& __sent)
{
    class Cpp11CB : public ::IceInternal::Cpp11FnCallbackNC
    {
    public:

        Cpp11CB(const ::std::function<void (::Ice::Int)>& responseFunc, const ::std::function<void (const ::Ice::Exception&)>& exceptionFunc, const ::std::function<void (bool)>& sentFunc) :
            ::IceInternal::Cpp11FnCallbackNC(exceptionFunc, sentFunc),
            _response(responseFunc)
        {
            CallbackBase::checkCallback(true, responseFunc || exceptionFunc != nullptr);
        }

        virtual void completed(const ::Ice::AsyncResultPtr& __result) const
        {
            ::sharknir::obsControl::SequencerPrx __proxy = ::sharknir::obsControl::SequencerPrx::uncheckedCast(__result->getProxy());
            ::Ice::Int __ret;
            try
            {
                __ret = __proxy->end_setupMotionDict(__result);
            }
            catch(const ::Ice::Exception& ex)
            {
                Cpp11FnCallbackNC::exception(__result, ex);
                return;
            }
            if(_response != nullptr)
            {
                _response(__ret);
            }
        }
    
    private:
        
        ::std::function<void (::Ice::Int)> _response;
    };
    return begin_setupMotionDict(__p_dSetup, __ctx, new Cpp11CB(__response, __exception, __sent));
}
#endif

::Ice::Int
IceProxy::sharknir::obsControl::Sequencer::end_setupMotionDict(const ::Ice::AsyncResultPtr& __result)
{
    ::Ice::AsyncResult::__check(__result, this, __sharknir__obsControl__Sequencer__setupMotionDict_name);
    ::Ice::Int __ret;
    if(!__result->__wait())
    {
        try
        {
            __result->__throwUserException();
        }
        catch(const ::Ice::UserException& __ex)
        {
            throw ::Ice::UnknownUserException(__FILE__, __LINE__, __ex.ice_name());
        }
    }
    ::IceInternal::BasicStream* __is = __result->__startReadParams();
    __is->read(__ret);
    __result->__endReadParams();
    return __ret;
}

::Ice::Int
IceProxy::sharknir::obsControl::Sequencer::setupTracking(const ::std::string& __p_strSetup, const ::Ice::Context* __ctx)
{
    __checkTwowayOnly(__sharknir__obsControl__Sequencer__setupTracking_name);
    ::IceInternal::Outgoing __og(this, __sharknir__obsControl__Sequencer__setupTracking_name, ::Ice::Idempotent, __ctx);
    try
    {
        ::IceInternal::BasicStream* __os = __og.startWriteParams(::Ice::DefaultFormat);
        __os->write(__p_strSetup);
        __og.endWriteParams();
    }
    catch(const ::Ice::LocalException& __ex)
    {
        __og.abort(__ex);
    }
    if(!__og.invoke())
    {
        try
        {
            __og.throwUserException();
        }
        catch(const ::Ice::UserException& __ex)
        {
            ::Ice::UnknownUserException __uue(__FILE__, __LINE__, __ex.ice_name());
            throw __uue;
        }
    }
    ::Ice::Int __ret;
    ::IceInternal::BasicStream* __is = __og.startReadParams();
    __is->read(__ret);
    __og.endReadParams();
    return __ret;
}

::Ice::AsyncResultPtr
IceProxy::sharknir::obsControl::Sequencer::begin_setupTracking(const ::std::string& __p_strSetup, const ::Ice::Context* __ctx, const ::IceInternal::CallbackBasePtr& __del, const ::Ice::LocalObjectPtr& __cookie)
{
    __checkAsyncTwowayOnly(__sharknir__obsControl__Sequencer__setupTracking_name);
    ::IceInternal::OutgoingAsyncPtr __result = new ::IceInternal::OutgoingAsync(this, __sharknir__obsControl__Sequencer__setupTracking_name, __del, __cookie);
    try
    {
        __result->prepare(__sharknir__obsControl__Sequencer__setupTracking_name, ::Ice::Idempotent, __ctx);
        ::IceInternal::BasicStream* __os = __result->startWriteParams(::Ice::DefaultFormat);
        __os->write(__p_strSetup);
        __result->endWriteParams();
        __result->invoke();
    }
    catch(const ::Ice::Exception& __ex)
    {
        __result->abort(__ex);
    }
    return __result;
}

#ifdef ICE_CPP11

::Ice::AsyncResultPtr
IceProxy::sharknir::obsControl::Sequencer::__begin_setupTracking(const ::std::string& __p_strSetup, const ::Ice::Context* __ctx, const ::IceInternal::Function<void (::Ice::Int)>& __response, const ::IceInternal::Function<void (const ::Ice::Exception&)>& __exception, const ::IceInternal::Function<void (bool)>& __sent)
{
    class Cpp11CB : public ::IceInternal::Cpp11FnCallbackNC
    {
    public:

        Cpp11CB(const ::std::function<void (::Ice::Int)>& responseFunc, const ::std::function<void (const ::Ice::Exception&)>& exceptionFunc, const ::std::function<void (bool)>& sentFunc) :
            ::IceInternal::Cpp11FnCallbackNC(exceptionFunc, sentFunc),
            _response(responseFunc)
        {
            CallbackBase::checkCallback(true, responseFunc || exceptionFunc != nullptr);
        }

        virtual void completed(const ::Ice::AsyncResultPtr& __result) const
        {
            ::sharknir::obsControl::SequencerPrx __proxy = ::sharknir::obsControl::SequencerPrx::uncheckedCast(__result->getProxy());
            ::Ice::Int __ret;
            try
            {
                __ret = __proxy->end_setupTracking(__result);
            }
            catch(const ::Ice::Exception& ex)
            {
                Cpp11FnCallbackNC::exception(__result, ex);
                return;
            }
            if(_response != nullptr)
            {
                _response(__ret);
            }
        }
    
    private:
        
        ::std::function<void (::Ice::Int)> _response;
    };
    return begin_setupTracking(__p_strSetup, __ctx, new Cpp11CB(__response, __exception, __sent));
}
#endif

::Ice::Int
IceProxy::sharknir::obsControl::Sequencer::end_setupTracking(const ::Ice::AsyncResultPtr& __result)
{
    ::Ice::AsyncResult::__check(__result, this, __sharknir__obsControl__Sequencer__setupTracking_name);
    ::Ice::Int __ret;
    if(!__result->__wait())
    {
        try
        {
            __result->__throwUserException();
        }
        catch(const ::Ice::UserException& __ex)
        {
            throw ::Ice::UnknownUserException(__FILE__, __LINE__, __ex.ice_name());
        }
    }
    ::IceInternal::BasicStream* __is = __result->__startReadParams();
    __is->read(__ret);
    __result->__endReadParams();
    return __ret;
}

::Ice::Int
IceProxy::sharknir::obsControl::Sequencer::setupCalibration(const ::sharknir::dictNonSciAssembly& __p_dictNonSci, const ::std::string& __p_strSetup, const ::Ice::Context* __ctx)
{
    __checkTwowayOnly(__sharknir__obsControl__Sequencer__setupCalibration_name);
    ::IceInternal::Outgoing __og(this, __sharknir__obsControl__Sequencer__setupCalibration_name, ::Ice::Idempotent, __ctx);
    try
    {
        ::IceInternal::BasicStream* __os = __og.startWriteParams(::Ice::DefaultFormat);
        __os->write(__p_dictNonSci);
        __os->write(__p_strSetup);
        __og.endWriteParams();
    }
    catch(const ::Ice::LocalException& __ex)
    {
        __og.abort(__ex);
    }
    if(!__og.invoke())
    {
        try
        {
            __og.throwUserException();
        }
        catch(const ::Ice::UserException& __ex)
        {
            ::Ice::UnknownUserException __uue(__FILE__, __LINE__, __ex.ice_name());
            throw __uue;
        }
    }
    ::Ice::Int __ret;
    ::IceInternal::BasicStream* __is = __og.startReadParams();
    __is->read(__ret);
    __og.endReadParams();
    return __ret;
}

::Ice::AsyncResultPtr
IceProxy::sharknir::obsControl::Sequencer::begin_setupCalibration(const ::sharknir::dictNonSciAssembly& __p_dictNonSci, const ::std::string& __p_strSetup, const ::Ice::Context* __ctx, const ::IceInternal::CallbackBasePtr& __del, const ::Ice::LocalObjectPtr& __cookie)
{
    __checkAsyncTwowayOnly(__sharknir__obsControl__Sequencer__setupCalibration_name);
    ::IceInternal::OutgoingAsyncPtr __result = new ::IceInternal::OutgoingAsync(this, __sharknir__obsControl__Sequencer__setupCalibration_name, __del, __cookie);
    try
    {
        __result->prepare(__sharknir__obsControl__Sequencer__setupCalibration_name, ::Ice::Idempotent, __ctx);
        ::IceInternal::BasicStream* __os = __result->startWriteParams(::Ice::DefaultFormat);
        __os->write(__p_dictNonSci);
        __os->write(__p_strSetup);
        __result->endWriteParams();
        __result->invoke();
    }
    catch(const ::Ice::Exception& __ex)
    {
        __result->abort(__ex);
    }
    return __result;
}

#ifdef ICE_CPP11

::Ice::AsyncResultPtr
IceProxy::sharknir::obsControl::Sequencer::__begin_setupCalibration(const ::sharknir::dictNonSciAssembly& __p_dictNonSci, const ::std::string& __p_strSetup, const ::Ice::Context* __ctx, const ::IceInternal::Function<void (::Ice::Int)>& __response, const ::IceInternal::Function<void (const ::Ice::Exception&)>& __exception, const ::IceInternal::Function<void (bool)>& __sent)
{
    class Cpp11CB : public ::IceInternal::Cpp11FnCallbackNC
    {
    public:

        Cpp11CB(const ::std::function<void (::Ice::Int)>& responseFunc, const ::std::function<void (const ::Ice::Exception&)>& exceptionFunc, const ::std::function<void (bool)>& sentFunc) :
            ::IceInternal::Cpp11FnCallbackNC(exceptionFunc, sentFunc),
            _response(responseFunc)
        {
            CallbackBase::checkCallback(true, responseFunc || exceptionFunc != nullptr);
        }

        virtual void completed(const ::Ice::AsyncResultPtr& __result) const
        {
            ::sharknir::obsControl::SequencerPrx __proxy = ::sharknir::obsControl::SequencerPrx::uncheckedCast(__result->getProxy());
            ::Ice::Int __ret;
            try
            {
                __ret = __proxy->end_setupCalibration(__result);
            }
            catch(const ::Ice::Exception& ex)
            {
                Cpp11FnCallbackNC::exception(__result, ex);
                return;
            }
            if(_response != nullptr)
            {
                _response(__ret);
            }
        }
    
    private:
        
        ::std::function<void (::Ice::Int)> _response;
    };
    return begin_setupCalibration(__p_dictNonSci, __p_strSetup, __ctx, new Cpp11CB(__response, __exception, __sent));
}
#endif

::Ice::Int
IceProxy::sharknir::obsControl::Sequencer::end_setupCalibration(const ::Ice::AsyncResultPtr& __result)
{
    ::Ice::AsyncResult::__check(__result, this, __sharknir__obsControl__Sequencer__setupCalibration_name);
    ::Ice::Int __ret;
    if(!__result->__wait())
    {
        try
        {
            __result->__throwUserException();
        }
        catch(const ::Ice::UserException& __ex)
        {
            throw ::Ice::UnknownUserException(__FILE__, __LINE__, __ex.ice_name());
        }
    }
    ::IceInternal::BasicStream* __is = __result->__startReadParams();
    __is->read(__ret);
    __result->__endReadParams();
    return __ret;
}

const ::std::string&
IceProxy::sharknir::obsControl::Sequencer::ice_staticId()
{
    return ::sharknir::obsControl::Sequencer::ice_staticId();
}

::IceProxy::Ice::Object*
IceProxy::sharknir::obsControl::Sequencer::__newInstance() const
{
    return new Sequencer;
}
::IceProxy::Ice::Object* ::IceProxy::sharknir::obsControl::upCast(::IceProxy::sharknir::obsControl::motionControl* p) { return p; }

void
::IceProxy::sharknir::obsControl::__read(::IceInternal::BasicStream* __is, ::IceInternal::ProxyHandle< ::IceProxy::sharknir::obsControl::motionControl>& v)
{
    ::Ice::ObjectPrx proxy;
    __is->read(proxy);
    if(!proxy)
    {
        v = 0;
    }
    else
    {
        v = new ::IceProxy::sharknir::obsControl::motionControl;
        v->__copyFrom(proxy);
    }
}

::Ice::Int
IceProxy::sharknir::obsControl::motionControl::setupMotion(const ::sharknir::dictNonSciAssembly& __p_dictNonSci, const ::std::string& __p_strSetup, const ::Ice::Context* __ctx)
{
    __checkTwowayOnly(__sharknir__obsControl__motionControl__setupMotion_name);
    ::IceInternal::Outgoing __og(this, __sharknir__obsControl__motionControl__setupMotion_name, ::Ice::Idempotent, __ctx);
    try
    {
        ::IceInternal::BasicStream* __os = __og.startWriteParams(::Ice::DefaultFormat);
        __os->write(__p_dictNonSci);
        __os->write(__p_strSetup);
        __og.endWriteParams();
    }
    catch(const ::Ice::LocalException& __ex)
    {
        __og.abort(__ex);
    }
    if(!__og.invoke())
    {
        try
        {
            __og.throwUserException();
        }
        catch(const ::Ice::UserException& __ex)
        {
            ::Ice::UnknownUserException __uue(__FILE__, __LINE__, __ex.ice_name());
            throw __uue;
        }
    }
    ::Ice::Int __ret;
    ::IceInternal::BasicStream* __is = __og.startReadParams();
    __is->read(__ret);
    __og.endReadParams();
    return __ret;
}

::Ice::AsyncResultPtr
IceProxy::sharknir::obsControl::motionControl::begin_setupMotion(const ::sharknir::dictNonSciAssembly& __p_dictNonSci, const ::std::string& __p_strSetup, const ::Ice::Context* __ctx, const ::IceInternal::CallbackBasePtr& __del, const ::Ice::LocalObjectPtr& __cookie)
{
    __checkAsyncTwowayOnly(__sharknir__obsControl__motionControl__setupMotion_name);
    ::IceInternal::OutgoingAsyncPtr __result = new ::IceInternal::OutgoingAsync(this, __sharknir__obsControl__motionControl__setupMotion_name, __del, __cookie);
    try
    {
        __result->prepare(__sharknir__obsControl__motionControl__setupMotion_name, ::Ice::Idempotent, __ctx);
        ::IceInternal::BasicStream* __os = __result->startWriteParams(::Ice::DefaultFormat);
        __os->write(__p_dictNonSci);
        __os->write(__p_strSetup);
        __result->endWriteParams();
        __result->invoke();
    }
    catch(const ::Ice::Exception& __ex)
    {
        __result->abort(__ex);
    }
    return __result;
}

#ifdef ICE_CPP11

::Ice::AsyncResultPtr
IceProxy::sharknir::obsControl::motionControl::__begin_setupMotion(const ::sharknir::dictNonSciAssembly& __p_dictNonSci, const ::std::string& __p_strSetup, const ::Ice::Context* __ctx, const ::IceInternal::Function<void (::Ice::Int)>& __response, const ::IceInternal::Function<void (const ::Ice::Exception&)>& __exception, const ::IceInternal::Function<void (bool)>& __sent)
{
    class Cpp11CB : public ::IceInternal::Cpp11FnCallbackNC
    {
    public:

        Cpp11CB(const ::std::function<void (::Ice::Int)>& responseFunc, const ::std::function<void (const ::Ice::Exception&)>& exceptionFunc, const ::std::function<void (bool)>& sentFunc) :
            ::IceInternal::Cpp11FnCallbackNC(exceptionFunc, sentFunc),
            _response(responseFunc)
        {
            CallbackBase::checkCallback(true, responseFunc || exceptionFunc != nullptr);
        }

        virtual void completed(const ::Ice::AsyncResultPtr& __result) const
        {
            ::sharknir::obsControl::motionControlPrx __proxy = ::sharknir::obsControl::motionControlPrx::uncheckedCast(__result->getProxy());
            ::Ice::Int __ret;
            try
            {
                __ret = __proxy->end_setupMotion(__result);
            }
            catch(const ::Ice::Exception& ex)
            {
                Cpp11FnCallbackNC::exception(__result, ex);
                return;
            }
            if(_response != nullptr)
            {
                _response(__ret);
            }
        }
    
    private:
        
        ::std::function<void (::Ice::Int)> _response;
    };
    return begin_setupMotion(__p_dictNonSci, __p_strSetup, __ctx, new Cpp11CB(__response, __exception, __sent));
}
#endif

::Ice::Int
IceProxy::sharknir::obsControl::motionControl::end_setupMotion(const ::Ice::AsyncResultPtr& __result)
{
    ::Ice::AsyncResult::__check(__result, this, __sharknir__obsControl__motionControl__setupMotion_name);
    ::Ice::Int __ret;
    if(!__result->__wait())
    {
        try
        {
            __result->__throwUserException();
        }
        catch(const ::Ice::UserException& __ex)
        {
            throw ::Ice::UnknownUserException(__FILE__, __LINE__, __ex.ice_name());
        }
    }
    ::IceInternal::BasicStream* __is = __result->__startReadParams();
    __is->read(__ret);
    __result->__endReadParams();
    return __ret;
}

const ::std::string&
IceProxy::sharknir::obsControl::motionControl::ice_staticId()
{
    return ::sharknir::obsControl::motionControl::ice_staticId();
}

::IceProxy::Ice::Object*
IceProxy::sharknir::obsControl::motionControl::__newInstance() const
{
    return new motionControl;
}
::IceProxy::Ice::Object* ::IceProxy::sharknir::obsControl::upCast(::IceProxy::sharknir::obsControl::trackControl* p) { return p; }

void
::IceProxy::sharknir::obsControl::__read(::IceInternal::BasicStream* __is, ::IceInternal::ProxyHandle< ::IceProxy::sharknir::obsControl::trackControl>& v)
{
    ::Ice::ObjectPrx proxy;
    __is->read(proxy);
    if(!proxy)
    {
        v = 0;
    }
    else
    {
        v = new ::IceProxy::sharknir::obsControl::trackControl;
        v->__copyFrom(proxy);
    }
}

::Ice::Int
IceProxy::sharknir::obsControl::trackControl::setupTracking(const ::std::string& __p_strSetup, const ::Ice::Context* __ctx)
{
    __checkTwowayOnly(__sharknir__obsControl__trackControl__setupTracking_name);
    ::IceInternal::Outgoing __og(this, __sharknir__obsControl__trackControl__setupTracking_name, ::Ice::Idempotent, __ctx);
    try
    {
        ::IceInternal::BasicStream* __os = __og.startWriteParams(::Ice::DefaultFormat);
        __os->write(__p_strSetup);
        __og.endWriteParams();
    }
    catch(const ::Ice::LocalException& __ex)
    {
        __og.abort(__ex);
    }
    if(!__og.invoke())
    {
        try
        {
            __og.throwUserException();
        }
        catch(const ::Ice::UserException& __ex)
        {
            ::Ice::UnknownUserException __uue(__FILE__, __LINE__, __ex.ice_name());
            throw __uue;
        }
    }
    ::Ice::Int __ret;
    ::IceInternal::BasicStream* __is = __og.startReadParams();
    __is->read(__ret);
    __og.endReadParams();
    return __ret;
}

::Ice::AsyncResultPtr
IceProxy::sharknir::obsControl::trackControl::begin_setupTracking(const ::std::string& __p_strSetup, const ::Ice::Context* __ctx, const ::IceInternal::CallbackBasePtr& __del, const ::Ice::LocalObjectPtr& __cookie)
{
    __checkAsyncTwowayOnly(__sharknir__obsControl__trackControl__setupTracking_name);
    ::IceInternal::OutgoingAsyncPtr __result = new ::IceInternal::OutgoingAsync(this, __sharknir__obsControl__trackControl__setupTracking_name, __del, __cookie);
    try
    {
        __result->prepare(__sharknir__obsControl__trackControl__setupTracking_name, ::Ice::Idempotent, __ctx);
        ::IceInternal::BasicStream* __os = __result->startWriteParams(::Ice::DefaultFormat);
        __os->write(__p_strSetup);
        __result->endWriteParams();
        __result->invoke();
    }
    catch(const ::Ice::Exception& __ex)
    {
        __result->abort(__ex);
    }
    return __result;
}

#ifdef ICE_CPP11

::Ice::AsyncResultPtr
IceProxy::sharknir::obsControl::trackControl::__begin_setupTracking(const ::std::string& __p_strSetup, const ::Ice::Context* __ctx, const ::IceInternal::Function<void (::Ice::Int)>& __response, const ::IceInternal::Function<void (const ::Ice::Exception&)>& __exception, const ::IceInternal::Function<void (bool)>& __sent)
{
    class Cpp11CB : public ::IceInternal::Cpp11FnCallbackNC
    {
    public:

        Cpp11CB(const ::std::function<void (::Ice::Int)>& responseFunc, const ::std::function<void (const ::Ice::Exception&)>& exceptionFunc, const ::std::function<void (bool)>& sentFunc) :
            ::IceInternal::Cpp11FnCallbackNC(exceptionFunc, sentFunc),
            _response(responseFunc)
        {
            CallbackBase::checkCallback(true, responseFunc || exceptionFunc != nullptr);
        }

        virtual void completed(const ::Ice::AsyncResultPtr& __result) const
        {
            ::sharknir::obsControl::trackControlPrx __proxy = ::sharknir::obsControl::trackControlPrx::uncheckedCast(__result->getProxy());
            ::Ice::Int __ret;
            try
            {
                __ret = __proxy->end_setupTracking(__result);
            }
            catch(const ::Ice::Exception& ex)
            {
                Cpp11FnCallbackNC::exception(__result, ex);
                return;
            }
            if(_response != nullptr)
            {
                _response(__ret);
            }
        }
    
    private:
        
        ::std::function<void (::Ice::Int)> _response;
    };
    return begin_setupTracking(__p_strSetup, __ctx, new Cpp11CB(__response, __exception, __sent));
}
#endif

::Ice::Int
IceProxy::sharknir::obsControl::trackControl::end_setupTracking(const ::Ice::AsyncResultPtr& __result)
{
    ::Ice::AsyncResult::__check(__result, this, __sharknir__obsControl__trackControl__setupTracking_name);
    ::Ice::Int __ret;
    if(!__result->__wait())
    {
        try
        {
            __result->__throwUserException();
        }
        catch(const ::Ice::UserException& __ex)
        {
            throw ::Ice::UnknownUserException(__FILE__, __LINE__, __ex.ice_name());
        }
    }
    ::IceInternal::BasicStream* __is = __result->__startReadParams();
    __is->read(__ret);
    __result->__endReadParams();
    return __ret;
}

const ::std::string&
IceProxy::sharknir::obsControl::trackControl::ice_staticId()
{
    return ::sharknir::obsControl::trackControl::ice_staticId();
}

::IceProxy::Ice::Object*
IceProxy::sharknir::obsControl::trackControl::__newInstance() const
{
    return new trackControl;
}
::IceProxy::Ice::Object* ::IceProxy::sharknir::obsControl::upCast(::IceProxy::sharknir::obsControl::calibrationControl* p) { return p; }

void
::IceProxy::sharknir::obsControl::__read(::IceInternal::BasicStream* __is, ::IceInternal::ProxyHandle< ::IceProxy::sharknir::obsControl::calibrationControl>& v)
{
    ::Ice::ObjectPrx proxy;
    __is->read(proxy);
    if(!proxy)
    {
        v = 0;
    }
    else
    {
        v = new ::IceProxy::sharknir::obsControl::calibrationControl;
        v->__copyFrom(proxy);
    }
}

::Ice::Int
IceProxy::sharknir::obsControl::calibrationControl::setupCalibration(const ::sharknir::dictNonSciAssembly& __p_dictNonSci, const ::std::string& __p_strSetup, const ::Ice::Context* __ctx)
{
    __checkTwowayOnly(__sharknir__obsControl__calibrationControl__setupCalibration_name);
    ::IceInternal::Outgoing __og(this, __sharknir__obsControl__calibrationControl__setupCalibration_name, ::Ice::Idempotent, __ctx);
    try
    {
        ::IceInternal::BasicStream* __os = __og.startWriteParams(::Ice::DefaultFormat);
        __os->write(__p_dictNonSci);
        __os->write(__p_strSetup);
        __og.endWriteParams();
    }
    catch(const ::Ice::LocalException& __ex)
    {
        __og.abort(__ex);
    }
    if(!__og.invoke())
    {
        try
        {
            __og.throwUserException();
        }
        catch(const ::Ice::UserException& __ex)
        {
            ::Ice::UnknownUserException __uue(__FILE__, __LINE__, __ex.ice_name());
            throw __uue;
        }
    }
    ::Ice::Int __ret;
    ::IceInternal::BasicStream* __is = __og.startReadParams();
    __is->read(__ret);
    __og.endReadParams();
    return __ret;
}

::Ice::AsyncResultPtr
IceProxy::sharknir::obsControl::calibrationControl::begin_setupCalibration(const ::sharknir::dictNonSciAssembly& __p_dictNonSci, const ::std::string& __p_strSetup, const ::Ice::Context* __ctx, const ::IceInternal::CallbackBasePtr& __del, const ::Ice::LocalObjectPtr& __cookie)
{
    __checkAsyncTwowayOnly(__sharknir__obsControl__calibrationControl__setupCalibration_name);
    ::IceInternal::OutgoingAsyncPtr __result = new ::IceInternal::OutgoingAsync(this, __sharknir__obsControl__calibrationControl__setupCalibration_name, __del, __cookie);
    try
    {
        __result->prepare(__sharknir__obsControl__calibrationControl__setupCalibration_name, ::Ice::Idempotent, __ctx);
        ::IceInternal::BasicStream* __os = __result->startWriteParams(::Ice::DefaultFormat);
        __os->write(__p_dictNonSci);
        __os->write(__p_strSetup);
        __result->endWriteParams();
        __result->invoke();
    }
    catch(const ::Ice::Exception& __ex)
    {
        __result->abort(__ex);
    }
    return __result;
}

#ifdef ICE_CPP11

::Ice::AsyncResultPtr
IceProxy::sharknir::obsControl::calibrationControl::__begin_setupCalibration(const ::sharknir::dictNonSciAssembly& __p_dictNonSci, const ::std::string& __p_strSetup, const ::Ice::Context* __ctx, const ::IceInternal::Function<void (::Ice::Int)>& __response, const ::IceInternal::Function<void (const ::Ice::Exception&)>& __exception, const ::IceInternal::Function<void (bool)>& __sent)
{
    class Cpp11CB : public ::IceInternal::Cpp11FnCallbackNC
    {
    public:

        Cpp11CB(const ::std::function<void (::Ice::Int)>& responseFunc, const ::std::function<void (const ::Ice::Exception&)>& exceptionFunc, const ::std::function<void (bool)>& sentFunc) :
            ::IceInternal::Cpp11FnCallbackNC(exceptionFunc, sentFunc),
            _response(responseFunc)
        {
            CallbackBase::checkCallback(true, responseFunc || exceptionFunc != nullptr);
        }

        virtual void completed(const ::Ice::AsyncResultPtr& __result) const
        {
            ::sharknir::obsControl::calibrationControlPrx __proxy = ::sharknir::obsControl::calibrationControlPrx::uncheckedCast(__result->getProxy());
            ::Ice::Int __ret;
            try
            {
                __ret = __proxy->end_setupCalibration(__result);
            }
            catch(const ::Ice::Exception& ex)
            {
                Cpp11FnCallbackNC::exception(__result, ex);
                return;
            }
            if(_response != nullptr)
            {
                _response(__ret);
            }
        }
    
    private:
        
        ::std::function<void (::Ice::Int)> _response;
    };
    return begin_setupCalibration(__p_dictNonSci, __p_strSetup, __ctx, new Cpp11CB(__response, __exception, __sent));
}
#endif

::Ice::Int
IceProxy::sharknir::obsControl::calibrationControl::end_setupCalibration(const ::Ice::AsyncResultPtr& __result)
{
    ::Ice::AsyncResult::__check(__result, this, __sharknir__obsControl__calibrationControl__setupCalibration_name);
    ::Ice::Int __ret;
    if(!__result->__wait())
    {
        try
        {
            __result->__throwUserException();
        }
        catch(const ::Ice::UserException& __ex)
        {
            throw ::Ice::UnknownUserException(__FILE__, __LINE__, __ex.ice_name());
        }
    }
    ::IceInternal::BasicStream* __is = __result->__startReadParams();
    __is->read(__ret);
    __result->__endReadParams();
    return __ret;
}

const ::std::string&
IceProxy::sharknir::obsControl::calibrationControl::ice_staticId()
{
    return ::sharknir::obsControl::calibrationControl::ice_staticId();
}

::IceProxy::Ice::Object*
IceProxy::sharknir::obsControl::calibrationControl::__newInstance() const
{
    return new calibrationControl;
}

::Ice::Object* sharknir::obsControl::upCast(::sharknir::obsControl::Sequencer* p) { return p; }

namespace
{
const ::std::string __sharknir__obsControl__Sequencer_ids[2] =
{
    "::Ice::Object",
    "::sharknir::obsControl::Sequencer"
};

}

bool
sharknir::obsControl::Sequencer::ice_isA(const ::std::string& _s, const ::Ice::Current&) const
{
    return ::std::binary_search(__sharknir__obsControl__Sequencer_ids, __sharknir__obsControl__Sequencer_ids + 2, _s);
}

::std::vector< ::std::string>
sharknir::obsControl::Sequencer::ice_ids(const ::Ice::Current&) const
{
    return ::std::vector< ::std::string>(&__sharknir__obsControl__Sequencer_ids[0], &__sharknir__obsControl__Sequencer_ids[2]);
}

const ::std::string&
sharknir::obsControl::Sequencer::ice_id(const ::Ice::Current&) const
{
    return __sharknir__obsControl__Sequencer_ids[1];
}

const ::std::string&
sharknir::obsControl::Sequencer::ice_staticId()
{
#ifdef ICE_HAS_THREAD_SAFE_LOCAL_STATIC
    static const ::std::string typeId = "::sharknir::obsControl::Sequencer";
    return typeId;
#else
    return __sharknir__obsControl__Sequencer_ids[1];
#endif
}

::Ice::DispatchStatus
sharknir::obsControl::Sequencer::___setupMotion(::IceInternal::Incoming& __inS, const ::Ice::Current& __current)
{
    __checkMode(::Ice::Idempotent, __current.mode);
    ::IceInternal::BasicStream* __is = __inS.startReadParams();
    ::sharknir::dictNonSciAssembly __p_dictNonSci;
    ::std::string __p_strSetup;
    __is->read(__p_dictNonSci);
    __is->read(__p_strSetup);
    __inS.endReadParams();
    ::Ice::Int __ret = setupMotion(__p_dictNonSci, __p_strSetup, __current);
    ::IceInternal::BasicStream* __os = __inS.__startWriteParams(::Ice::DefaultFormat);
    __os->write(__ret);
    __inS.__endWriteParams(true);
    return ::Ice::DispatchOK;
}

::Ice::DispatchStatus
sharknir::obsControl::Sequencer::___setupMotionDict(::IceInternal::Incoming& __inS, const ::Ice::Current& __current)
{
    __checkMode(::Ice::Idempotent, __current.mode);
    ::IceInternal::BasicStream* __is = __inS.startReadParams();
    ::sharknir::dictSetup __p_dSetup;
    __is->read(__p_dSetup);
    __inS.endReadParams();
    ::Ice::Int __ret = setupMotionDict(__p_dSetup, __current);
    ::IceInternal::BasicStream* __os = __inS.__startWriteParams(::Ice::DefaultFormat);
    __os->write(__ret);
    __inS.__endWriteParams(true);
    return ::Ice::DispatchOK;
}

::Ice::DispatchStatus
sharknir::obsControl::Sequencer::___setupTracking(::IceInternal::Incoming& __inS, const ::Ice::Current& __current)
{
    __checkMode(::Ice::Idempotent, __current.mode);
    ::IceInternal::BasicStream* __is = __inS.startReadParams();
    ::std::string __p_strSetup;
    __is->read(__p_strSetup);
    __inS.endReadParams();
    ::Ice::Int __ret = setupTracking(__p_strSetup, __current);
    ::IceInternal::BasicStream* __os = __inS.__startWriteParams(::Ice::DefaultFormat);
    __os->write(__ret);
    __inS.__endWriteParams(true);
    return ::Ice::DispatchOK;
}

::Ice::DispatchStatus
sharknir::obsControl::Sequencer::___setupCalibration(::IceInternal::Incoming& __inS, const ::Ice::Current& __current)
{
    __checkMode(::Ice::Idempotent, __current.mode);
    ::IceInternal::BasicStream* __is = __inS.startReadParams();
    ::sharknir::dictNonSciAssembly __p_dictNonSci;
    ::std::string __p_strSetup;
    __is->read(__p_dictNonSci);
    __is->read(__p_strSetup);
    __inS.endReadParams();
    ::Ice::Int __ret = setupCalibration(__p_dictNonSci, __p_strSetup, __current);
    ::IceInternal::BasicStream* __os = __inS.__startWriteParams(::Ice::DefaultFormat);
    __os->write(__ret);
    __inS.__endWriteParams(true);
    return ::Ice::DispatchOK;
}

namespace
{
const ::std::string __sharknir__obsControl__Sequencer_all[] =
{
    "ice_id",
    "ice_ids",
    "ice_isA",
    "ice_ping",
    "setupCalibration",
    "setupMotion",
    "setupMotionDict",
    "setupTracking"
};

}

::Ice::DispatchStatus
sharknir::obsControl::Sequencer::__dispatch(::IceInternal::Incoming& in, const ::Ice::Current& current)
{
    ::std::pair< const ::std::string*, const ::std::string*> r = ::std::equal_range(__sharknir__obsControl__Sequencer_all, __sharknir__obsControl__Sequencer_all + 8, current.operation);
    if(r.first == r.second)
    {
        throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
    }

    switch(r.first - __sharknir__obsControl__Sequencer_all)
    {
        case 0:
        {
            return ___ice_id(in, current);
        }
        case 1:
        {
            return ___ice_ids(in, current);
        }
        case 2:
        {
            return ___ice_isA(in, current);
        }
        case 3:
        {
            return ___ice_ping(in, current);
        }
        case 4:
        {
            return ___setupCalibration(in, current);
        }
        case 5:
        {
            return ___setupMotion(in, current);
        }
        case 6:
        {
            return ___setupMotionDict(in, current);
        }
        case 7:
        {
            return ___setupTracking(in, current);
        }
    }

    assert(false);
    throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
}

void
sharknir::obsControl::Sequencer::__writeImpl(::IceInternal::BasicStream* __os) const
{
    __os->startWriteSlice(ice_staticId(), -1, true);
    __os->endWriteSlice();
}

void
sharknir::obsControl::Sequencer::__readImpl(::IceInternal::BasicStream* __is)
{
    __is->startReadSlice();
    __is->endReadSlice();
}

void 
sharknir::obsControl::__patch(SequencerPtr& handle, const ::Ice::ObjectPtr& v)
{
    handle = ::sharknir::obsControl::SequencerPtr::dynamicCast(v);
    if(v && !handle)
    {
        IceInternal::Ex::throwUOE(::sharknir::obsControl::Sequencer::ice_staticId(), v);
    }
}

::Ice::Object* sharknir::obsControl::upCast(::sharknir::obsControl::motionControl* p) { return p; }

namespace
{
const ::std::string __sharknir__obsControl__motionControl_ids[2] =
{
    "::Ice::Object",
    "::sharknir::obsControl::motionControl"
};

}

bool
sharknir::obsControl::motionControl::ice_isA(const ::std::string& _s, const ::Ice::Current&) const
{
    return ::std::binary_search(__sharknir__obsControl__motionControl_ids, __sharknir__obsControl__motionControl_ids + 2, _s);
}

::std::vector< ::std::string>
sharknir::obsControl::motionControl::ice_ids(const ::Ice::Current&) const
{
    return ::std::vector< ::std::string>(&__sharknir__obsControl__motionControl_ids[0], &__sharknir__obsControl__motionControl_ids[2]);
}

const ::std::string&
sharknir::obsControl::motionControl::ice_id(const ::Ice::Current&) const
{
    return __sharknir__obsControl__motionControl_ids[1];
}

const ::std::string&
sharknir::obsControl::motionControl::ice_staticId()
{
#ifdef ICE_HAS_THREAD_SAFE_LOCAL_STATIC
    static const ::std::string typeId = "::sharknir::obsControl::motionControl";
    return typeId;
#else
    return __sharknir__obsControl__motionControl_ids[1];
#endif
}

::Ice::DispatchStatus
sharknir::obsControl::motionControl::___setupMotion(::IceInternal::Incoming& __inS, const ::Ice::Current& __current)
{
    __checkMode(::Ice::Idempotent, __current.mode);
    ::IceInternal::BasicStream* __is = __inS.startReadParams();
    ::sharknir::dictNonSciAssembly __p_dictNonSci;
    ::std::string __p_strSetup;
    __is->read(__p_dictNonSci);
    __is->read(__p_strSetup);
    __inS.endReadParams();
    ::Ice::Int __ret = setupMotion(__p_dictNonSci, __p_strSetup, __current);
    ::IceInternal::BasicStream* __os = __inS.__startWriteParams(::Ice::DefaultFormat);
    __os->write(__ret);
    __inS.__endWriteParams(true);
    return ::Ice::DispatchOK;
}

namespace
{
const ::std::string __sharknir__obsControl__motionControl_all[] =
{
    "ice_id",
    "ice_ids",
    "ice_isA",
    "ice_ping",
    "setupMotion"
};

}

::Ice::DispatchStatus
sharknir::obsControl::motionControl::__dispatch(::IceInternal::Incoming& in, const ::Ice::Current& current)
{
    ::std::pair< const ::std::string*, const ::std::string*> r = ::std::equal_range(__sharknir__obsControl__motionControl_all, __sharknir__obsControl__motionControl_all + 5, current.operation);
    if(r.first == r.second)
    {
        throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
    }

    switch(r.first - __sharknir__obsControl__motionControl_all)
    {
        case 0:
        {
            return ___ice_id(in, current);
        }
        case 1:
        {
            return ___ice_ids(in, current);
        }
        case 2:
        {
            return ___ice_isA(in, current);
        }
        case 3:
        {
            return ___ice_ping(in, current);
        }
        case 4:
        {
            return ___setupMotion(in, current);
        }
    }

    assert(false);
    throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
}

void
sharknir::obsControl::motionControl::__writeImpl(::IceInternal::BasicStream* __os) const
{
    __os->startWriteSlice(ice_staticId(), -1, true);
    __os->endWriteSlice();
}

void
sharknir::obsControl::motionControl::__readImpl(::IceInternal::BasicStream* __is)
{
    __is->startReadSlice();
    __is->endReadSlice();
}

void 
sharknir::obsControl::__patch(motionControlPtr& handle, const ::Ice::ObjectPtr& v)
{
    handle = ::sharknir::obsControl::motionControlPtr::dynamicCast(v);
    if(v && !handle)
    {
        IceInternal::Ex::throwUOE(::sharknir::obsControl::motionControl::ice_staticId(), v);
    }
}

::Ice::Object* sharknir::obsControl::upCast(::sharknir::obsControl::trackControl* p) { return p; }

namespace
{
const ::std::string __sharknir__obsControl__trackControl_ids[2] =
{
    "::Ice::Object",
    "::sharknir::obsControl::trackControl"
};

}

bool
sharknir::obsControl::trackControl::ice_isA(const ::std::string& _s, const ::Ice::Current&) const
{
    return ::std::binary_search(__sharknir__obsControl__trackControl_ids, __sharknir__obsControl__trackControl_ids + 2, _s);
}

::std::vector< ::std::string>
sharknir::obsControl::trackControl::ice_ids(const ::Ice::Current&) const
{
    return ::std::vector< ::std::string>(&__sharknir__obsControl__trackControl_ids[0], &__sharknir__obsControl__trackControl_ids[2]);
}

const ::std::string&
sharknir::obsControl::trackControl::ice_id(const ::Ice::Current&) const
{
    return __sharknir__obsControl__trackControl_ids[1];
}

const ::std::string&
sharknir::obsControl::trackControl::ice_staticId()
{
#ifdef ICE_HAS_THREAD_SAFE_LOCAL_STATIC
    static const ::std::string typeId = "::sharknir::obsControl::trackControl";
    return typeId;
#else
    return __sharknir__obsControl__trackControl_ids[1];
#endif
}

::Ice::DispatchStatus
sharknir::obsControl::trackControl::___setupTracking(::IceInternal::Incoming& __inS, const ::Ice::Current& __current)
{
    __checkMode(::Ice::Idempotent, __current.mode);
    ::IceInternal::BasicStream* __is = __inS.startReadParams();
    ::std::string __p_strSetup;
    __is->read(__p_strSetup);
    __inS.endReadParams();
    ::Ice::Int __ret = setupTracking(__p_strSetup, __current);
    ::IceInternal::BasicStream* __os = __inS.__startWriteParams(::Ice::DefaultFormat);
    __os->write(__ret);
    __inS.__endWriteParams(true);
    return ::Ice::DispatchOK;
}

namespace
{
const ::std::string __sharknir__obsControl__trackControl_all[] =
{
    "ice_id",
    "ice_ids",
    "ice_isA",
    "ice_ping",
    "setupTracking"
};

}

::Ice::DispatchStatus
sharknir::obsControl::trackControl::__dispatch(::IceInternal::Incoming& in, const ::Ice::Current& current)
{
    ::std::pair< const ::std::string*, const ::std::string*> r = ::std::equal_range(__sharknir__obsControl__trackControl_all, __sharknir__obsControl__trackControl_all + 5, current.operation);
    if(r.first == r.second)
    {
        throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
    }

    switch(r.first - __sharknir__obsControl__trackControl_all)
    {
        case 0:
        {
            return ___ice_id(in, current);
        }
        case 1:
        {
            return ___ice_ids(in, current);
        }
        case 2:
        {
            return ___ice_isA(in, current);
        }
        case 3:
        {
            return ___ice_ping(in, current);
        }
        case 4:
        {
            return ___setupTracking(in, current);
        }
    }

    assert(false);
    throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
}

void
sharknir::obsControl::trackControl::__writeImpl(::IceInternal::BasicStream* __os) const
{
    __os->startWriteSlice(ice_staticId(), -1, true);
    __os->endWriteSlice();
}

void
sharknir::obsControl::trackControl::__readImpl(::IceInternal::BasicStream* __is)
{
    __is->startReadSlice();
    __is->endReadSlice();
}

void 
sharknir::obsControl::__patch(trackControlPtr& handle, const ::Ice::ObjectPtr& v)
{
    handle = ::sharknir::obsControl::trackControlPtr::dynamicCast(v);
    if(v && !handle)
    {
        IceInternal::Ex::throwUOE(::sharknir::obsControl::trackControl::ice_staticId(), v);
    }
}

::Ice::Object* sharknir::obsControl::upCast(::sharknir::obsControl::calibrationControl* p) { return p; }

namespace
{
const ::std::string __sharknir__obsControl__calibrationControl_ids[2] =
{
    "::Ice::Object",
    "::sharknir::obsControl::calibrationControl"
};

}

bool
sharknir::obsControl::calibrationControl::ice_isA(const ::std::string& _s, const ::Ice::Current&) const
{
    return ::std::binary_search(__sharknir__obsControl__calibrationControl_ids, __sharknir__obsControl__calibrationControl_ids + 2, _s);
}

::std::vector< ::std::string>
sharknir::obsControl::calibrationControl::ice_ids(const ::Ice::Current&) const
{
    return ::std::vector< ::std::string>(&__sharknir__obsControl__calibrationControl_ids[0], &__sharknir__obsControl__calibrationControl_ids[2]);
}

const ::std::string&
sharknir::obsControl::calibrationControl::ice_id(const ::Ice::Current&) const
{
    return __sharknir__obsControl__calibrationControl_ids[1];
}

const ::std::string&
sharknir::obsControl::calibrationControl::ice_staticId()
{
#ifdef ICE_HAS_THREAD_SAFE_LOCAL_STATIC
    static const ::std::string typeId = "::sharknir::obsControl::calibrationControl";
    return typeId;
#else
    return __sharknir__obsControl__calibrationControl_ids[1];
#endif
}

::Ice::DispatchStatus
sharknir::obsControl::calibrationControl::___setupCalibration(::IceInternal::Incoming& __inS, const ::Ice::Current& __current)
{
    __checkMode(::Ice::Idempotent, __current.mode);
    ::IceInternal::BasicStream* __is = __inS.startReadParams();
    ::sharknir::dictNonSciAssembly __p_dictNonSci;
    ::std::string __p_strSetup;
    __is->read(__p_dictNonSci);
    __is->read(__p_strSetup);
    __inS.endReadParams();
    ::Ice::Int __ret = setupCalibration(__p_dictNonSci, __p_strSetup, __current);
    ::IceInternal::BasicStream* __os = __inS.__startWriteParams(::Ice::DefaultFormat);
    __os->write(__ret);
    __inS.__endWriteParams(true);
    return ::Ice::DispatchOK;
}

namespace
{
const ::std::string __sharknir__obsControl__calibrationControl_all[] =
{
    "ice_id",
    "ice_ids",
    "ice_isA",
    "ice_ping",
    "setupCalibration"
};

}

::Ice::DispatchStatus
sharknir::obsControl::calibrationControl::__dispatch(::IceInternal::Incoming& in, const ::Ice::Current& current)
{
    ::std::pair< const ::std::string*, const ::std::string*> r = ::std::equal_range(__sharknir__obsControl__calibrationControl_all, __sharknir__obsControl__calibrationControl_all + 5, current.operation);
    if(r.first == r.second)
    {
        throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
    }

    switch(r.first - __sharknir__obsControl__calibrationControl_all)
    {
        case 0:
        {
            return ___ice_id(in, current);
        }
        case 1:
        {
            return ___ice_ids(in, current);
        }
        case 2:
        {
            return ___ice_isA(in, current);
        }
        case 3:
        {
            return ___ice_ping(in, current);
        }
        case 4:
        {
            return ___setupCalibration(in, current);
        }
    }

    assert(false);
    throw ::Ice::OperationNotExistException(__FILE__, __LINE__, current.id, current.facet, current.operation);
}

void
sharknir::obsControl::calibrationControl::__writeImpl(::IceInternal::BasicStream* __os) const
{
    __os->startWriteSlice(ice_staticId(), -1, true);
    __os->endWriteSlice();
}

void
sharknir::obsControl::calibrationControl::__readImpl(::IceInternal::BasicStream* __is)
{
    __is->startReadSlice();
    __is->endReadSlice();
}

void 
sharknir::obsControl::__patch(calibrationControlPtr& handle, const ::Ice::ObjectPtr& v)
{
    handle = ::sharknir::obsControl::calibrationControlPtr::dynamicCast(v);
    if(v && !handle)
    {
        IceInternal::Ex::throwUOE(::sharknir::obsControl::calibrationControl::ice_staticId(), v);
    }
}
