// Copyright (C) 2010-2016  MarketFactory, Inc. All Rights Reserved.
//================================================================================
//   This file is auto-generated; DO NOT EDIT!
//================================================================================

#ifndef __MFAPIGEN_TRADELIMITDATA__
#define __MFAPIGEN_TRADELIMITDATA__

#include <API/Clients/CPP/Proto/APITypes.h>
#include <API/Clients/CPP/Proto/MarketRate.h>
#include <API/Clients/CPP/Proto/TradeHierarchy.h>
#include <API/Clients/CPP/Proto/TradeLimit.h>
#include <API/Clients/CPP/Proto/TradeState.h>

#include <iosfwd>
#include <string>
#include <vector>

namespace MFAPI {

/** Contains all trading limits/state.
 */

class TradeLimitData 
{
public:

    //--------------------------------------------------------------------------
    // Public attributes.

    std::string clDataID;

    std::vector<TradeLimit> groupLimits;

    std::vector<TradeState> groupStates;

    std::vector<TradeHierarchy> userHierarchy;

    std::vector<MarketRate> marketRates;

    int32_t numRemainingMessages;

    /** True if the market-data update is a full snapshot; False means
     * this is an incremental update.
     */
    bool isSnapshot;

    //--------------------------------------------------------------------------

    TradeLimitData();
    ~TradeLimitData();

    bool operator==(const TradeLimitData&) const;
    bool operator!=(const TradeLimitData&) const;
    bool operator<(const TradeLimitData&) const;

    void dump(std::ostream& os, bool pretty) const;
    void read(void*);
    void write(void*) const;
    void dump(void*) const;

};

std::ostream& operator<<(std::ostream& os, const TradeLimitData& o);

} // MFAPI

#endif
// InclKwds: TradeLimitData
/*
Brought to you by
/opt/atlassian/bamboo-agent/xml-data/build-dir/GAT-GWY-B3/Messaging/main.py --root /opt/atlassian/bamboo-agent/xml-data/build-dir/GAT-GWY-B3 --commit-date 2016-12-06T18:11:31.205-05:00 --revision 19c07f7ab2ea0612a19fbcabdd4a54e242830e7d --branch master --generated_directory /opt/atlassian/bamboo-agent/xml-data/build-dir/GAT-GWY-B3/build/rh7_3.13.0/release/intel64/generated/Python -o /opt/atlassian/bamboo-agent/xml-data/build-dir/GAT-GWY-B3/build/rh7_3.13.0/release/intel64/generated/API/Clients/CPP/Proto -i /opt/atlassian/bamboo-agent/xml-data/build-dir/GAT-GWY-B3/Messaging/MFProtocol --namespace=MFAPI cppapi /opt/atlassian/bamboo-agent/xml-data/build-dir/GAT-GWY-B3/Messaging/MFProtocol.proto.3130 /opt/atlassian/bamboo-agent/xml-data/build-dir/GAT-GWY-B3/Messaging/MFObsolete.proto.3130 
*/
