You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ovtKernelContext.h 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*********************************************************************
  2. * Software License Agreement (AGPL-3 License)
  3. *
  4. * OpenViBE SDK Test Software
  5. * Based on OpenViBE V1.1.0, Copyright (C) Inria, 2006-2015
  6. * Copyright (C) Inria, 2015-2017,V1.0
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU Affero General Public License version 3,
  10. * as published by the Free Software Foundation.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU Affero General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Affero General Public License
  18. * along with this program.
  19. * If not, see <http://www.gnu.org/licenses/>.
  20. */
  21. #pragma once
  22. #include <string>
  23. #include <openvibe/ov_all.h>
  24. namespace OpenViBE
  25. {
  26. namespace Test
  27. {
  28. class ctx final
  29. {
  30. public:
  31. ctx() = default;
  32. ~ctx() = default;
  33. bool initialize();
  34. bool uninitialize();
  35. Kernel::IKernelContext* operator->() { return m_Context; }
  36. private:
  37. Kernel::IKernelContext* m_Context{nullptr};
  38. CKernelLoader m_KernelLoader;
  39. };
  40. } // namespace Test
  41. } // namespace OpenViBE