Added TailProduce static code and macros for streams definition.

I am going to video chat (google hangout) for the standup.  Should we
verify now that we can connect?


On Wed, Jun 18, 2014 at 10:10 AM, Brian Francois <brian@staance.com> wrote:

> 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>.
>>
>
>