#include "vast/detail/cppa_type_info.h"

#include <cppa/announce.hpp>
#include "vast/chunk.h"
#include "vast/event.h"
#include "vast/expression.h"
#include "vast/schema.h"
#include "vast/segment.h"
#include "vast/to_string.h"
#include "vast/uuid.h"

namespace vast {
namespace detail {

template <typename T>
void cppa_announce()
{
  cppa::announce(typeid(T), new cppa_type_info<T>);
}

void cppa_announce_types()
{
  cppa_announce<uuid>();
  cppa_announce<event>();
  cppa_announce<chunk<event>>();

  cppa_announce<expression>();
  cppa_announce<segment>();
  cppa_announce<schema>();

  cppa::announce<std::vector<uuid>>();
  cppa::announce<std::vector<event>>();
}

} // namespace detail
} // namespace vast

#include "vast/detail/cppa_type_info.h"

#include <cppa/announce.hpp>
#include "vast/chunk.h"
#include "vast/event.h"
#include "vast/expression.h"
#include "vast/schema.h"
#include "vast/segment.h"
#include "vast/to_string.h"
#include "vast/uuid.h"

namespace vast {
namespace detail {

template <typename T>
void cppa_announce()
{
  cppa::announce(typeid(T), new cppa_type_info<T>);
}

void cppa_announce_types()
{
  cppa_announce<uuid>();
  cppa_announce<event>();
  cppa_announce<chunk<event>>();

  cppa_announce<expression>();
  cppa_announce<segment>();
  cppa_announce<schema>();

  cppa_announce<std::vector<uuid>>();
  cppa_announce<std::vector<event>>();
}

} // namespace detail
} // namespace vast

Fix nasty bug introduced due to naming glitch.
Fix nasty bug introduced due to naming glitch.
