Added TailProduce static code and macros for streams definition.

why don't we pull this request and you can make another to make those
improvements


On Wed, Jun 18, 2014 at 9:58 AM, Dima <notifications@github.com> wrote:

> In src/tailproduce.h:
>
> > +                LOG(FATAL) << "Attempted to register the '" << name << "' stream more than once.";
> > +            }
> > +            names.insert(name);
> > +            streams.push_back(StreamsRegistryEntry{impl, name, entry_type, order_key_type});
> > +        }
> > +    };
> > +
> > +    struct Stream {
> > +        Stream(StreamsRegistry& registry,
> > +               const std::string& stream_name,
> > +               const std::string& entry_type_name,
> > +               const std::string& order_key_type_name) {
> > +            registry.Add(this, stream_name, entry_type_name, order_key_type_name);
> > +        }
> > +    };
> > +    struct OrderKey {};
>
> I'm on it, along with a full-stack test of the static framework.
>
> Would you prefer those to come in this or another pull request?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/Staance/tailproduce/pull/11/files#r13926519>.
>