/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * File:   polymorph.h
 * Author: pgess <v.melnychenko@xreate.org>
 *
 * Created on November 9, 2017, 12:14 PM
 */

#ifndef POLYMORPHQUERY_H
#define POLYMORPHQUERY_H

#include "clasplayer.h"

namespace xreate {
    struct PolymorphGuard{};
    
    template<>
    struct AttachmentsDict<PolymorphGuard>
    {
        typedef Expression Data;
        static const unsigned int key = 10;
    };
}

namespace xreate { namespace polymorph {
class PolymorphQuery: public IQuery {
public:
    virtual void init(ClaspLayer* clasp) override;
};

}}//end of xreate::polymorph

#endif /* POLYMORPHQUERY_H */

