/*
  Copyright 2007-2017 David Robillard <d@drobilla.net>

  Raul is free software: you can redistribute it and/or modify it under the
  terms of the GNU General Public License as published by the Free Software
  Foundation, either version 3 of the License, or any later version.

  Raul is distributed in the hope that it will be useful, but WITHOUT ANY
  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  A PARTICULAR PURPOSE.  See the GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with Raul.  If not, see <http://www.gnu.org/licenses/>.
*/

#include "raul/Array.hpp"
#include "raul/Deletable.hpp"
#include "raul/DoubleBuffer.hpp"
#include "raul/Exception.hpp"
#include "raul/Maid.hpp"
#include "raul/Noncopyable.hpp"
#include "raul/Path.hpp"
#include "raul/RingBuffer.hpp"
#include "raul/Semaphore.hpp"
#include "raul/Symbol.hpp"

#ifndef _WIN32
#  include "raul/Process.hpp"
#  include "raul/Socket.hpp"
#endif

class DeletableThing : public raul::Deletable
{};

class NonCopyableThing : public raul::Noncopyable
{};

int
main()
{
  raul::Array<int>        array;
  DeletableThing          deletable;
  raul::DoubleBuffer<int> double_buffer(0);
  raul::Maid              maid;
  NonCopyableThing        non_copyable;
  raul::Path              path;
  raul::RingBuffer        ring_buffer(64u);
  raul::Semaphore         semaphore(0u);
  raul::Symbol            symbol("foo");

  try {
    raul::Symbol bad_symbol("not a valid symbol!");
    (void)bad_symbol;
  } catch (const raul::Exception&) {
  }

#ifndef _WIN32
  const char* cmd[] = {"echo"};
  raul::Process::launch(cmd);

  raul::Socket socket(raul::Socket::Type::UNIX);

  (void)socket;
#endif

  (void)array;
  (void)deletable;
  (void)double_buffer;
  (void)maid;
  (void)non_copyable;
  (void)path;
  (void)ring_buffer;
  (void)symbol;

  return 0;
}