mbed.org implementation of the abstract SmartREST library for the Cumulocity Platform SmartREST protocol.
Dependents: MbedSmartRestMain MbedSmartRestMain
Diff: AbstractDataSource.h
- Revision:
- 11:e1bee9a77652
- Parent:
- 0:099f76422485
diff -r 97077cfa13fc -r e1bee9a77652 AbstractDataSource.h --- a/AbstractDataSource.h Thu Oct 23 14:41:58 2014 +0200 +++ b/AbstractDataSource.h Sat Nov 15 11:21:01 2014 +0100 @@ -74,28 +74,28 @@ */ class AbstractDataSource { -public: - virtual ~AbstractDataSource() { }; + public: + virtual ~AbstractDataSource() { }; - /** - * Reads one character. When successful, the returned value - * represents the character. Otherwise, status() will return a - * non-zero value. This function is blocking. - * @return the caracter read or zero. If the return value is - * non-zero, status() is zero. Otherwise, check status() for a - * non-zero value. - */ - virtual char read() = 0; + /** + * Reads one character. When successful, the returned value + * represents the character. Otherwise, status() will return a + * non-zero value. This function is blocking. + * @return the caracter read or zero. If the return value is + * non-zero, status() is zero. Otherwise, check status() for a + * non-zero value. + */ + virtual char read() = 0; - /** - * Returns the current read state. If a non-zero value is returned, - * there is an error. Otherwise, everything is ok. - * DS_STATUS_TIMEOUT means that there has been a read timeout. - * DS_STATUS_CLOSED means that the connection has been closed - * by either this or the foreign host. - * @return the status value - */ - virtual uint8_t status() = 0; + /** + * Returns the current read state. If a non-zero value is returned, + * there is an error. Otherwise, everything is ok. + * DS_STATUS_TIMEOUT means that there has been a read timeout. + * DS_STATUS_CLOSED means that the connection has been closed + * by either this or the foreign host. + * @return the status value + */ + virtual uint8_t status() = 0; }; #endif