C++ API Reference RNBO: src/RNBO_DataRefList.h Source File

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 namespace RNBO {
16  enum class DataRefType {
17  File,
18  URL
19  };
20 
39  class DataRefList {
40  public:
41 
42  DataRefList(std::string jsonString);
43  ~DataRefList();
44 
48  size_t size();
49 
56  std::string datarefIdAtIndex(size_t index);
57 
65  std::string datarefLocationAtIndex(size_t index);
66 
73  DataRefType datarefTypeAtIndex(size_t index);
74 
75  private:
76  std::vector<std::string> _ids;
77  std::vector<std::string> _locations;
78  std::vector<DataRefType> _types;
79  };
80 }
81 #endif /* RNBO_NOSTDLIB */
82 
83 #endif /* RNBO_DataRefList_h */