77namespace databento {
88// Represents a historical data center gateway location.
99enum class HistoricalGateway : std::uint8_t {
10- Nearest = 0 ,
1110 Bo1,
1211};
1312
1413// Represents a live data center gateway location.
1514enum class LiveGateway : std::uint8_t {
1615 Origin = 0 ,
17- Nearest,
1816 Ny4,
1917 Dc3,
2018};
@@ -101,6 +99,12 @@ enum class JobState : std::uint8_t {
10199 Expired,
102100};
103101
102+ // The condition of a dataset at a point in time.
103+ enum class DatasetCondition : std::uint8_t {
104+ Available,
105+ Bad,
106+ };
107+
104108// Convert a HistoricalGateway to a URL.
105109const char * UrlFromGateway (HistoricalGateway gateway);
106110
@@ -113,6 +117,7 @@ const char* ToString(SplitDuration duration_interval);
113117const char * ToString (Packaging packaging);
114118const char * ToString (Delivery delivery);
115119const char * ToString (JobState state);
120+ const char * ToString (DatasetCondition condition);
116121
117122std::ostream& operator <<(std::ostream& out, Schema schema);
118123std::ostream& operator <<(std::ostream& out, Encoding encoding);
@@ -123,6 +128,7 @@ std::ostream& operator<<(std::ostream& out, SplitDuration duration_interval);
123128std::ostream& operator <<(std::ostream& out, Packaging packaging);
124129std::ostream& operator <<(std::ostream& out, Delivery delivery);
125130std::ostream& operator <<(std::ostream& out, JobState state);
131+ std::ostream& operator <<(std::ostream& out, DatasetCondition condition);
126132
127133template <typename T>
128134T FromString (const std::string& str);
@@ -144,4 +150,6 @@ template <>
144150Delivery FromString (const std::string& str);
145151template <>
146152JobState FromString (const std::string& str);
153+ template <>
154+ DatasetCondition FromString (const std::string& str);
147155} // namespace databento
0 commit comments