]> git.piffa.net Git - arduino/blob - books/pdummies/Libraries/xively/XivelyFeed.h
office
[arduino] / books / pdummies / Libraries / xively / XivelyFeed.h
1
2 #ifndef XIVELY_FEED_H
3 #define XIVELY_FEED_H
4
5 #include <Client.h>
6 #include <XivelyDatastream.h>
7 #include <Printable.h>
8
9 class XivelyFeed : public Printable
10 {
11 public:
12   XivelyFeed(unsigned long aID, XivelyDatastream* aDatastreams, int aDatastreamsCount);
13
14   virtual size_t printTo(Print&) const;
15   unsigned long id() { return _id; };
16   int size() { return _datastreamsCount; };
17   XivelyDatastream& operator[] (unsigned i) { return _datastreams[i]; };
18 protected:
19   unsigned long _id;
20   XivelyDatastream* _datastreams;
21   int _datastreamsCount;
22 };
23
24 #endif
25