mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-16 07:23:07 +01:00
make unknown string a member
This commit is contained in:
@@ -164,13 +164,18 @@ class GwXDRFoundMapping{
|
||||
}
|
||||
};
|
||||
|
||||
//the class GwXDRMappings is not intended to be deleted
|
||||
//the deletion will leave memory leaks!
|
||||
class GwXDRMappings{
|
||||
static const int MAX_UNKNOWN=200;
|
||||
static const int ESIZE=13;
|
||||
private:
|
||||
GwLog *logger;
|
||||
GwConfigHandler *config;
|
||||
GwXDRMapping::N138Map n183Map;
|
||||
GwXDRMapping::N2KMap n2kMap;
|
||||
std::unordered_set<unsigned long> unknown;
|
||||
char *unknowAsString=NULL;
|
||||
GwXDRFoundMapping selectMapping(GwXDRMapping::MappingList *list,int instance,const char * key);
|
||||
bool addUnknown(GwXDRCategory category,int selector,int field=0,int instance=-1);
|
||||
public:
|
||||
@@ -180,8 +185,7 @@ class GwXDRMappings{
|
||||
//the returned mapping will exactly contain one mapping def
|
||||
GwXDRFoundMapping getMapping(String xName,String xType,String xUnit);
|
||||
GwXDRFoundMapping getMapping(GwXDRCategory category,int selector,int field=0,int instance=-1);
|
||||
//returns a newly created buffer - user must destroy!
|
||||
char * getUnMapped();
|
||||
const char * getUnMapped();
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user