mbed.org implementation of the abstract SmartREST library for the Cumulocity Platform SmartREST protocol.
Dependents: MbedSmartRestMain MbedSmartRestMain
Diff: AbstractDataSink.h
- Revision:
- 11:e1bee9a77652
- Parent:
- 5:2b74510900da
diff -r 97077cfa13fc -r e1bee9a77652 AbstractDataSink.h --- a/AbstractDataSink.h Thu Oct 23 14:41:58 2014 +0200 +++ b/AbstractDataSink.h Sat Nov 15 11:21:01 2014 +0100 @@ -50,37 +50,37 @@ */ class AbstractDataSink { -public: - virtual ~AbstractDataSink() { }; + public: + virtual ~AbstractDataSink() { }; - /** - * Writes a single character. - * @param c the character to write - * @return the number of characters written, in this case 1 or 0 - */ - virtual size_t write(char) = 0; + /** + * Writes a single character. + * @param c the character to write + * @return the number of characters written, in this case 1 or 0 + */ + virtual size_t write(char) = 0; - /** - * Writes a buffer. - * @param buf the buffer to write - * @param length the length of the buffer in bytes - * @return the number of characters written - */ - virtual size_t write(void*, size_t) = 0; + /** + * Writes a buffer. + * @param buf the buffer to write + * @param length the length of the buffer in bytes + * @return the number of characters written + */ + virtual size_t write(void*, size_t) = 0; - /** - * Writes a character string. - * @param str the string to write - * @return the number of characters written - */ - virtual size_t write(const char*) = 0; + /** + * Writes a character string. + * @param str the string to write + * @return the number of characters written + */ + virtual size_t write(const char*) = 0; - /** - * Writes a number with base 10. - * @param number the number to write - * @return the number of digits written - */ - virtual size_t write(unsigned long) = 0; + /** + * Writes a number with base 10. + * @param number the number to write + * @return the number of digits written + */ + virtual size_t write(unsigned long) = 0; }; #endif