RNBO: src/RNBO_DataRefList.h Source File 1 // 2 // RNBO_DataRefList.h 3 // RNBO 4 // 5 // Created by Sam Tarakajian on 2/10/20. 6 // 7 8 #ifndef RNBO_DataRefList_h 9 #define RNBO_DataRefList_h 10 11 #ifndef RNBO_NOSTL 12 13 #include "RNBO_Utils.h" 14 #include <vector> 15 #include <string> 16 17 namespace RNBO { 18 enum class DataRefType { 19 File, 20 URL 21 }; 22 41 class DataRefList { 42 public: 43 44 DataRefList(std::string jsonString); 45 ~DataRefList(); 46 50 size_t size(); 51 58 std::string datarefIdAtIndex(size_t index); 59 67 std::string datarefLocationAtIndex(size_t index); 68 75 DataRefType datarefTypeAtIndex(size_t index); 76 77 private: 78 std::vector<std::string> _ids; 79 std::vector<std::string> _locations; 80 std::vector<DataRefType> _types; 81 }; 82 } 83 #endif // RNBO_NOSTL 84 85 #endif /* RNBO_DataRefList_h */