support library for C027 helper functions for Buffer Pipes, Buffered Serial Port (rtos capable) and GPS parsing. It includes modem APIs for USSD, SMS and Sockets.

Fork of C027_Support by u-blox

Files at this revision

API Documentation at this revision

Comitter:
mazgch
Date:
Fri Apr 11 19:41:05 2014 +0000
Parent:
40:295099ff5338
Child:
42:6786401ba18c
Commit message:
make some function not virtual

Changed in this revision

Pipe.h Show annotated file Show diff for this revision Revisions of this file
--- a/Pipe.h	Fri Apr 11 19:39:08 2014 +0000
+++ b/Pipe.h	Fri Apr 11 19:41:05 2014 +0000
@@ -24,7 +24,7 @@
     /** Destructor 
         frees a allocated buffer.
     */
-    virtual ~Pipe(void)
+    ~Pipe(void)
     {
         if (_a) 
             delete [] _a;
@@ -129,7 +129,7 @@
     /** Get the number of values available in the buffer
         return the number of element available
     */
-    virtual int size(void)
+    int size(void)
     {
         int s = _w - _r;
         if (s < 0)
@@ -156,7 +156,7 @@
         \param t set to true if blocking, false otherwise
         \return number elements extracted
     */
-    virtual int get(T* p, int n, bool t = false)
+    int get(T* p, int n, bool t = false)
     {
         int c = n;
         while (c)
@@ -191,7 +191,7 @@
         \param ix the index to set.
         \return the number of elements starting at this position 
     */
-    virtual int set(int ix) 
+    int set(int ix) 
     {
         int sz = size();
         ix = (ix > sz) ? sz : ix;
@@ -202,7 +202,7 @@
     /** get the next element from parsing position and increment parsing index
         \return the extracted element.
     */
-    virtual T next(void)
+    T next(void)
     {
         int o = _o;
         T t = _b[o]; 
@@ -212,7 +212,7 @@
     
     /** commit the index, mrk the current parsing index as consumed data.
     */
-    virtual void done(void) 
+    void done(void) 
     {
         _r = _o; 
     }