Xively Official / mbed-libxively-5d6fdd4

Dependents:   xively-jumpstart-demo

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers csv_data.h Source File

csv_data.h

Go to the documentation of this file.
00001 // Copyright (c) 2003-2013, LogMeIn, Inc. All rights reserved.
00002 // This is part of Xively C library, it is under the BSD 3-Clause license.
00003 
00004 /**
00005  * \file    csv_data.h
00006  * \author  Olgierd Humenczuk
00007  * \brief   Implements CSV _data layer_ encoders and decoders specific to Xively CSV data format
00008  */
00009  
00010 #ifndef __CSV_DATA_H__
00011 #define __CSV_DATA_H__
00012 
00013 #include "xively.h"
00014 
00015 #ifdef __cplusplus
00016 extern "C" {
00017 #endif
00018 
00019 const char* csv_encode_datapoint( const xi_datapoint_t* dp );
00020 
00021 
00022 int csv_encode_datapoint_in_place(
00023       char* buffer, size_t buffer_size
00024     , const xi_datapoint_t* datapoint );
00025 
00026 const char* csv_encode_create_datastream(
00027           const char* buffer
00028         , const xi_datapoint_t* dp );
00029 
00030 xi_feed_t* csv_decode_feed(
00031       const char* buffer
00032     , xi_feed_t* feed );
00033 
00034 xi_datapoint_t* csv_decode_datapoint( const char* data, xi_datapoint_t* dp );
00035 
00036 #ifdef __cplusplus
00037 }
00038 #endif
00039 
00040 #endif // __CSV_DATA_H__