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.

urSimpleTestScenarioDefinition.h 2.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #include <openvibe/ov_all.h>
  2. #include <vector>
  3. #include <tuple>
  4. using namespace OpenViBE;
  5. static const auto s_SimpleScenarioFileName = std::string("test-scenario-simple.mxs");
  6. static const auto s_ClockStimulatorBoxId = CIdentifier(0x66b53b19, 0x043b1afe);
  7. static const auto s_StimulationListenerBoxId = CIdentifier(0x4468da36, 0x3fce3251);
  8. static const auto s_ClockStimulatorToStimulationListenerLinkId = CIdentifier(0x1dd7b2d2, 0x3c1d084d);
  9. static const auto s_SimpleCommentId = CIdentifier(0x24da4aa1, 0x7759a2ee);
  10. static const auto s_UnicodeCommentId = CIdentifier(0x160bd469, 0x62a644ce);
  11. static std::vector<std::tuple<CIdentifier, std::string>> simpleScenarioAttributes = {
  12. std::make_tuple(OV_AttributeId_Scenario_Name, std::string("SCENARIO NAME")),
  13. std::make_tuple(OV_AttributeId_Scenario_Author, std::string("AUTHOR NAME")),
  14. std::make_tuple(OV_AttributeId_Scenario_Company, std::string("COMPANY NAME")),
  15. std::make_tuple(OV_AttributeId_Scenario_ShortDescription, std::string("SHORT DESCRIPTION")),
  16. std::make_tuple(OV_AttributeId_Scenario_DetailedDescription, std::string("DETAILED DESCRIPTION")),
  17. std::make_tuple(OV_AttributeId_Scenario_Category, std::string("SCENARIO CATEGORY")),
  18. std::make_tuple(OV_AttributeId_Scenario_Version, std::string("SCENARIO VERSION")),
  19. std::make_tuple(OV_AttributeId_Scenario_DocumentationPage, std::string("DOCUMENTATION PAGE")),
  20. std::make_tuple(OV_AttributeId_Scenario_AddedSoftwareVersion, std::string("ADDED SOFTWARE VERSION")),
  21. std::make_tuple(OV_AttributeId_Scenario_UpdatedSoftwareVersion, std::string("UPDATED SOFTWARE VERSION"))
  22. };
  23. static std::vector<std::tuple<CIdentifier, std::string, std::string, std::string>> simpleScenarioSettings = {
  24. std::make_tuple(OV_TypeId_Integer, "Integer Setting", "10", "100"),
  25. std::make_tuple(OV_TypeId_Float, "Float Setting", "3.14", "2.0 + 2.1"),
  26. std::make_tuple(OV_TypeId_String, "String Setting", "Default string value", "Modified string value")
  27. };
  28. static std::vector<std::tuple<CIdentifier, std::string, CIdentifier, size_t>> simpleScenarioInputs = {
  29. std::make_tuple(OV_TypeId_Stimulations, "Stimulation Input", s_StimulationListenerBoxId, 0),
  30. std::make_tuple(OV_TypeId_StreamedMatrix, "Disconnected Matrix Input", CIdentifier::undefined(), 0),
  31. };
  32. static std::vector<std::tuple<CIdentifier, std::string, CIdentifier, size_t>> simpleScenarioOutputs = {
  33. std::make_tuple(OV_TypeId_Stimulations, "Stimulation Output", s_ClockStimulatorBoxId, 0),
  34. std::make_tuple(OV_TypeId_StreamedMatrix, "Disconnected Matrix Output", CIdentifier::undefined(), 0),
  35. };