// **********************************************************************
//
// 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 `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 < 3
#       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);
    }
};

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

typedef ::std::map< ::std::string, ::Ice::Int> dictSetup;

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);
    }
};

}

#include <IceUtil/PopDisableWarnings.h>
#endif
