nmeaCode.cpp
48 lines
| 716 B
| text/x-c
|
CppLexer
|
r96 | /* | ||
* nemeaCode.cpp | ||||
* | ||||
* Created on: Oct 21, 2014 | ||||
* Author: Alan Aguilar Sologuren | ||||
*/ | ||||
#include "nmeaCode.h" | ||||
#include <string.h> | ||||
#include <stdarg.h> | ||||
#include <stdio.h> | ||||
#include <time.h> | ||||
#include <math.h> | ||||
#include <float.h> | ||||
#include <limits.h> | ||||
#include <ctype.h> | ||||
#include <stdlib.h> | ||||
nmeaCode::nmeaCode(char* name=nullptr): | ||||
codebuff(nullptr){ | ||||
} | ||||
nmeaCode::~nmeaCode() { | ||||
// TODO Auto-generated destructor stub | ||||
} | ||||
|
r115 | bool nmeaCode::nmea_code_set(const char* cd) { | ||
size_t sz = strlen(cd); | ||||
codebuff = new char[sz]; | ||||
strcpy(codebuff, cd); | ||||
return true; | ||||
|
r96 | } | ||
|
r115 | bool nmeaCode::nmea_code_get(char* cd) { | ||
return true; | ||||
|
r96 | } | ||
//////////////////////////////////////////////////////////////////////////////////////// | ||||