// **********************************************************************
//
// Copyright (c) 2003-2017 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.4
//
// <auto-generated>
//
// Generated from file `sharknir.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//

#ifndef ______sharknir_h__
#define ______sharknir_h__

#include <IceUtil/PushDisableWarnings.h>
#include <Ice/ProxyF.h>
#include <Ice/ObjectF.h>
#include <Ice/Exception.h>
#include <Ice/LocalObject.h>
#include <Ice/StreamHelpers.h>
#include <IceUtil/ScopedArray.h>
#include <IceUtil/Optional.h>
#include <IceUtil/UndefSysMacros.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 < 4
#       error Ice patch level mismatch!
#   endif
#endif

namespace sharknir
{

struct NonSciAssembly
{
    ::std::string name;
    ::Ice::Int posApodizer;
    ::Ice::Int posCoroSlit;
    ::Ice::Int posLyotGrism;
    ::Ice::Int posWollaston;
    bool rotator;

    bool operator==(const NonSciAssembly& __rhs) const
    {
        if(this == &__rhs)
        {
            return true;
        }
        if(name != __rhs.name)
        {
            return false;
        }
        if(posApodizer != __rhs.posApodizer)
        {
            return false;
        }
        if(posCoroSlit != __rhs.posCoroSlit)
        {
            return false;
        }
        if(posLyotGrism != __rhs.posLyotGrism)
        {
            return false;
        }
        if(posWollaston != __rhs.posWollaston)
        {
            return false;
        }
        if(rotator != __rhs.rotator)
        {
            return false;
        }
        return true;
    }

    bool operator<(const NonSciAssembly& __rhs) const
    {
        if(this == &__rhs)
        {
            return false;
        }
        if(name < __rhs.name)
        {
            return true;
        }
        else if(__rhs.name < name)
        {
            return false;
        }
        if(posApodizer < __rhs.posApodizer)
        {
            return true;
        }
        else if(__rhs.posApodizer < posApodizer)
        {
            return false;
        }
        if(posCoroSlit < __rhs.posCoroSlit)
        {
            return true;
        }
        else if(__rhs.posCoroSlit < posCoroSlit)
        {
            return false;
        }
        if(posLyotGrism < __rhs.posLyotGrism)
        {
            return true;
        }
        else if(__rhs.posLyotGrism < posLyotGrism)
        {
            return false;
        }
        if(posWollaston < __rhs.posWollaston)
        {
            return true;
        }
        else if(__rhs.posWollaston < posWollaston)
        {
            return false;
        }
        if(rotator < __rhs.rotator)
        {
            return true;
        }
        else if(__rhs.rotator < rotator)
        {
            return false;
        }
        return false;
    }

    bool operator!=(const NonSciAssembly& __rhs) const
    {
        return !operator==(__rhs);
    }
    bool operator<=(const NonSciAssembly& __rhs) const
    {
        return operator<(__rhs) || operator==(__rhs);
    }
    bool operator>(const NonSciAssembly& __rhs) const
    {
        return !operator<(__rhs) && !operator==(__rhs);
    }
    bool operator>=(const NonSciAssembly& __rhs) const
    {
        return !operator<(__rhs);
    }
};

struct SciAssembly
{
    ::Ice::Int posSci1;
    ::Ice::Int posSci2;

    bool operator==(const SciAssembly& __rhs) const
    {
        if(this == &__rhs)
        {
            return true;
        }
        if(posSci1 != __rhs.posSci1)
        {
            return false;
        }
        if(posSci2 != __rhs.posSci2)
        {
            return false;
        }
        return true;
    }

    bool operator<(const SciAssembly& __rhs) const
    {
        if(this == &__rhs)
        {
            return false;
        }
        if(posSci1 < __rhs.posSci1)
        {
            return true;
        }
        else if(__rhs.posSci1 < posSci1)
        {
            return false;
        }
        if(posSci2 < __rhs.posSci2)
        {
            return true;
        }
        else if(__rhs.posSci2 < posSci2)
        {
            return false;
        }
        return false;
    }

    bool operator!=(const SciAssembly& __rhs) const
    {
        return !operator==(__rhs);
    }
    bool operator<=(const SciAssembly& __rhs) const
    {
        return operator<(__rhs) || operator==(__rhs);
    }
    bool operator>(const SciAssembly& __rhs) const
    {
        return !operator<(__rhs) && !operator==(__rhs);
    }
    bool operator>=(const SciAssembly& __rhs) const
    {
        return !operator<(__rhs);
    }
};

struct MotorStatus
{
    ::Ice::Int steps;
    ::std::string namedPos;
    bool connected;
    bool moving;
    bool atHome;
    bool inSwNegativeLimit;
    bool inSwPositiveLimit;
    bool inHwNegativeLimit;
    bool inWhPositiveLimit;

    bool operator==(const MotorStatus& __rhs) const
    {
        if(this == &__rhs)
        {
            return true;
        }
        if(steps != __rhs.steps)
        {
            return false;
        }
        if(namedPos != __rhs.namedPos)
        {
            return false;
        }
        if(connected != __rhs.connected)
        {
            return false;
        }
        if(moving != __rhs.moving)
        {
            return false;
        }
        if(atHome != __rhs.atHome)
        {
            return false;
        }
        if(inSwNegativeLimit != __rhs.inSwNegativeLimit)
        {
            return false;
        }
        if(inSwPositiveLimit != __rhs.inSwPositiveLimit)
        {
            return false;
        }
        if(inHwNegativeLimit != __rhs.inHwNegativeLimit)
        {
            return false;
        }
        if(inWhPositiveLimit != __rhs.inWhPositiveLimit)
        {
            return false;
        }
        return true;
    }

    bool operator<(const MotorStatus& __rhs) const
    {
        if(this == &__rhs)
        {
            return false;
        }
        if(steps < __rhs.steps)
        {
            return true;
        }
        else if(__rhs.steps < steps)
        {
            return false;
        }
        if(namedPos < __rhs.namedPos)
        {
            return true;
        }
        else if(__rhs.namedPos < namedPos)
        {
            return false;
        }
        if(connected < __rhs.connected)
        {
            return true;
        }
        else if(__rhs.connected < connected)
        {
            return false;
        }
        if(moving < __rhs.moving)
        {
            return true;
        }
        else if(__rhs.moving < moving)
        {
            return false;
        }
        if(atHome < __rhs.atHome)
        {
            return true;
        }
        else if(__rhs.atHome < atHome)
        {
            return false;
        }
        if(inSwNegativeLimit < __rhs.inSwNegativeLimit)
        {
            return true;
        }
        else if(__rhs.inSwNegativeLimit < inSwNegativeLimit)
        {
            return false;
        }
        if(inSwPositiveLimit < __rhs.inSwPositiveLimit)
        {
            return true;
        }
        else if(__rhs.inSwPositiveLimit < inSwPositiveLimit)
        {
            return false;
        }
        if(inHwNegativeLimit < __rhs.inHwNegativeLimit)
        {
            return true;
        }
        else if(__rhs.inHwNegativeLimit < inHwNegativeLimit)
        {
            return false;
        }
        if(inWhPositiveLimit < __rhs.inWhPositiveLimit)
        {
            return true;
        }
        else if(__rhs.inWhPositiveLimit < inWhPositiveLimit)
        {
            return false;
        }
        return false;
    }

    bool operator!=(const MotorStatus& __rhs) const
    {
        return !operator==(__rhs);
    }
    bool operator<=(const MotorStatus& __rhs) const
    {
        return operator<(__rhs) || operator==(__rhs);
    }
    bool operator>(const MotorStatus& __rhs) const
    {
        return !operator<(__rhs) && !operator==(__rhs);
    }
    bool operator>=(const MotorStatus& __rhs) const
    {
        return !operator<(__rhs);
    }
};

typedef ::std::vector< ::std::string> SeqString;

typedef ::std::vector< ::Ice::Float> SeqFloat;

typedef ::std::vector< ::Ice::Int> SeqInt;

typedef ::std::map< ::Ice::Short, ::sharknir::NonSciAssembly> dictNonSciAssembly;

typedef ::std::map< ::std::string, ::Ice::Double> dictSetupPos;

typedef ::std::map< ::std::string, ::Ice::Double> dictTemperatures;

typedef ::std::map< ::std::string, ::std::string> dictDevUnit;

typedef ::std::map< ::std::string, ::std::string> dictSetupNamedPos;

typedef ::std::map< ::std::string, ::std::string> dictTrackingMode;

typedef ::std::map< ::std::string, ::std::string> dictDetSetup;

typedef ::std::map< ::std::string, ::std::string> dictTelescopeSetup;

typedef ::std::map< ::std::string, ::std::string> dictTipTiltSetup;

typedef ::std::map< ::std::string, bool> dictIsMoving;

typedef ::std::map< ::std::string, bool> dictGenStringString;

typedef ::std::map< ::std::string, ::sharknir::MotorStatus> dictStatus;

typedef ::std::map< ::Ice::Short, ::sharknir::NonSciAssembly> dictSciAssembly;

}

namespace Ice
{
template<>
struct StreamableTraits< ::sharknir::NonSciAssembly>
{
    static const StreamHelperCategory helper = StreamHelperCategoryStruct;
    static const int minWireSize = 18;
    static const bool fixedLength = false;
};

template<class S>
struct StreamWriter< ::sharknir::NonSciAssembly, S>
{
    static void write(S* __os, const ::sharknir::NonSciAssembly& v)
    {
        __os->write(v.name);
        __os->write(v.posApodizer);
        __os->write(v.posCoroSlit);
        __os->write(v.posLyotGrism);
        __os->write(v.posWollaston);
        __os->write(v.rotator);
    }
};

template<class S>
struct StreamReader< ::sharknir::NonSciAssembly, S>
{
    static void read(S* __is, ::sharknir::NonSciAssembly& v)
    {
        __is->read(v.name);
        __is->read(v.posApodizer);
        __is->read(v.posCoroSlit);
        __is->read(v.posLyotGrism);
        __is->read(v.posWollaston);
        __is->read(v.rotator);
    }
};

template<>
struct StreamableTraits< ::sharknir::SciAssembly>
{
    static const StreamHelperCategory helper = StreamHelperCategoryStruct;
    static const int minWireSize = 8;
    static const bool fixedLength = true;
};

template<class S>
struct StreamWriter< ::sharknir::SciAssembly, S>
{
    static void write(S* __os, const ::sharknir::SciAssembly& v)
    {
        __os->write(v.posSci1);
        __os->write(v.posSci2);
    }
};

template<class S>
struct StreamReader< ::sharknir::SciAssembly, S>
{
    static void read(S* __is, ::sharknir::SciAssembly& v)
    {
        __is->read(v.posSci1);
        __is->read(v.posSci2);
    }
};

template<>
struct StreamableTraits< ::sharknir::MotorStatus>
{
    static const StreamHelperCategory helper = StreamHelperCategoryStruct;
    static const int minWireSize = 12;
    static const bool fixedLength = false;
};

template<class S>
struct StreamWriter< ::sharknir::MotorStatus, S>
{
    static void write(S* __os, const ::sharknir::MotorStatus& v)
    {
        __os->write(v.steps);
        __os->write(v.namedPos);
        __os->write(v.connected);
        __os->write(v.moving);
        __os->write(v.atHome);
        __os->write(v.inSwNegativeLimit);
        __os->write(v.inSwPositiveLimit);
        __os->write(v.inHwNegativeLimit);
        __os->write(v.inWhPositiveLimit);
    }
};

template<class S>
struct StreamReader< ::sharknir::MotorStatus, S>
{
    static void read(S* __is, ::sharknir::MotorStatus& v)
    {
        __is->read(v.steps);
        __is->read(v.namedPos);
        __is->read(v.connected);
        __is->read(v.moving);
        __is->read(v.atHome);
        __is->read(v.inSwNegativeLimit);
        __is->read(v.inSwPositiveLimit);
        __is->read(v.inHwNegativeLimit);
        __is->read(v.inWhPositiveLimit);
    }
};

}

#include <IceUtil/PopDisableWarnings.h>
#endif
