CHENGQI YANG / SmartLab_MuRata
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers IPAddress.h Source File

IPAddress.h

00001 #ifndef SmartLab_MuRata_Type_IPAddress
00002 #define SmartLab_MuRata_Type_IPAddress
00003 
00004 #include "IConfig.h"
00005 
00006 #include <string>
00007 #include "mbed.h"
00008 
00009 using namespace std;
00010 
00011 namespace SmartLabMuRata
00012 {
00013 class IPAddress : public IConfig
00014 {
00015 private:
00016     char address[4];
00017     
00018     char ip[16];
00019 
00020 public :
00021     IPAddress();
00022 
00023     IPAddress(const char * ipString);
00024 
00025     void SetValue(const char * data, int offset = 0);
00026 
00027     virtual const char * GetValue();
00028 
00029     virtual int GetValueLength();
00030     
00031     const char * ToString();
00032 };
00033 }
00034 
00035 #endif