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 #include "RNBO_Utils.h" 12 #include <vector> 13 14 #ifndef RNBO_NOSTDLIB 15 16 #include <string> 17 18 namespace RNBO { 19 enum class DataRefType { 20 File, 21 URL 22 }; 23 42 class DataRefList { 43 public: 44 45 DataRefList(std::string jsonString); 46 ~DataRefList(); 47 51 size_t size(); 52 59 std::string datarefIdAtIndex(size_t index); 60 68 std::string datarefLocationAtIndex(size_t index); 69 76 DataRefType datarefTypeAtIndex(size_t index); 77 78 private: 79 std::vector<std::string> _ids; 80 std::vector<std::string> _locations; 81 std::vector<DataRefType> _types; 82 }; 83 } 84 #endif /* RNBO_NOSTDLIB */ 85 86 #endif /* RNBO_DataRefList_h */