AudioManager  7.5.11
Native Application Runtime Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
CAmDatabaseHandlerMap.h File Reference

SPDX license identifier: MPL-2.0. More...

#include <stdint.h>
#include <limits.h>
#include <sstream>
#include <iostream>
#include <unordered_map>
#include <algorithm>
#include <assert.h>
#include <vector>
#include "IAmDatabaseHandler.h"

Go to the source code of this file.

Classes

class  am::CAmDatabaseHandlerMap
 This class handles and abstracts the database. More...
 
struct  am::CAmDatabaseHandlerMap::CAmMappedData::am_Identifier_s
 The structure encapsulates the id boundary and the current id value. More...
 

Namespaces

 am
 A Common-API wrapper class, which loads the common-api runtime and instantiates all necessary objects.
 

Macros

#define AM_MAP_CAPACITY   0
 
#define AM_MAX_CONNECTIONS   0x1000
 
#define AM_MAX_MAIN_CONNECTIONS   SHRT_MAX
 
#define AM_SUBCLASS_BEGIN(Subclass, Class)
 The following structures extend the base structures with the field 'reserved'. More...
 
#define AM_SUBCLASS_CONSTR(Subclass, Class)   Subclass():Class()
 
#define AM_SUBCLASS_CONSTR_BODY()   {};
 
#define AM_SUBCLASS_COPY_OP_START(Subclass, Class)
 
#define AM_SUBCLASS_COPY_OP_END()
 
#define AM_SUBCLASS_OP(Subclass, Class)
 
#define AM_SUBCLASS_END(Typedef)
 
#define AM_TYPEDEF_SUBCLASS_RESERVED_FLAG_BEGIN(Subclass, Class)
 
#define AM_TYPEDEF_SUBCLASS_SOUND_PROPERTIES_BEGIN(Subclass, Class)
 
#define AM_TYPEDEF_SUBCLASS_BEGIN(Subclass, Class)
 

Detailed Description

SPDX license identifier: MPL-2.0.

Copyright (C) 2012, BMW AG

This file is part of GENIVI Project AudioManager.

Contributions are licensed to the GENIVI Alliance under one or more Contribution License Agreements.

Author
Aleksandar Donchev, aleks.nosp@m.ande.nosp@m.r.don.nosp@m.chev.nosp@m.@part.nosp@m.ner..nosp@m.bmw.d.nosp@m.e BMW 2013

For further information see http://www.genivi.org/.

Definition in file CAmDatabaseHandlerMap.h.

Macro Definition Documentation

#define AM_MAP_CAPACITY   0

Definition at line 40 of file CAmDatabaseHandlerMap.h.

#define AM_MAX_CONNECTIONS   0x1000

Definition at line 44 of file CAmDatabaseHandlerMap.h.

#define AM_MAX_MAIN_CONNECTIONS   SHRT_MAX

Definition at line 48 of file CAmDatabaseHandlerMap.h.

#define AM_SUBCLASS_BEGIN (   Subclass,
  Class 
)
Value:
typedef struct Subclass : public Class\
{

The following structures extend the base structures with the field 'reserved'.

Definition at line 212 of file CAmDatabaseHandlerMap.h.

#define AM_SUBCLASS_CONSTR (   Subclass,
  Class 
)    Subclass():Class()

Definition at line 216 of file CAmDatabaseHandlerMap.h.

#define AM_SUBCLASS_CONSTR_BODY ( )    {};

Definition at line 219 of file CAmDatabaseHandlerMap.h.

#define AM_SUBCLASS_COPY_OP_END ( )
Value:
}\
return *this;\
};

Definition at line 229 of file CAmDatabaseHandlerMap.h.

#define AM_SUBCLASS_COPY_OP_START (   Subclass,
  Class 
)
Value:
Subclass & operator=(const Subclass & anObject)\
{\
if (this != &anObject)\
{\
Class::operator=(anObject);

Definition at line 222 of file CAmDatabaseHandlerMap.h.

#define AM_SUBCLASS_END (   Typedef)
Value:
void getDescription (std::string & outString) const;\
} Typedef;

Definition at line 242 of file CAmDatabaseHandlerMap.h.

#define AM_SUBCLASS_OP (   Subclass,
  Class 
)
Value:
Subclass & operator=(const Class & anObject)\
{\
if (this != &anObject)\
Class::operator=(anObject);\
return *this;\
};

Definition at line 234 of file CAmDatabaseHandlerMap.h.

#define AM_TYPEDEF_SUBCLASS_BEGIN (   Subclass,
  Class 
)
Value:
AM_SUBCLASS_BEGIN(Subclass, Class)\
AM_SUBCLASS_OP(Subclass, Class)\
#define AM_SUBCLASS_COPY_OP_START(Subclass, Class)
#define AM_SUBCLASS_COPY_OP_END()
#define AM_SUBCLASS_BEGIN(Subclass, Class)
The following structures extend the base structures with the field 'reserved'.
#define AM_SUBCLASS_OP(Subclass, Class)

Definition at line 272 of file CAmDatabaseHandlerMap.h.

#define AM_TYPEDEF_SUBCLASS_RESERVED_FLAG_BEGIN (   Subclass,
  Class 
)
Value:
AM_SUBCLASS_BEGIN(Subclass, Class)\
bool reserved;\
AM_SUBCLASS_CONSTR(Subclass, Class)\
,reserved(false)\
AM_SUBCLASS_COPY_OP_START(Subclass, Class)\
reserved = anObject.reserved;\
AM_SUBCLASS_OP(Subclass, Class)\
#define AM_SUBCLASS_COPY_OP_START(Subclass, Class)
#define AM_SUBCLASS_COPY_OP_END()
#define AM_SUBCLASS_BEGIN(Subclass, Class)
The following structures extend the base structures with the field 'reserved'.
#define AM_SUBCLASS_OP(Subclass, Class)
#define AM_SUBCLASS_CONSTR_BODY()
#define AM_SUBCLASS_CONSTR(Subclass, Class)

Definition at line 246 of file CAmDatabaseHandlerMap.h.

#define AM_TYPEDEF_SUBCLASS_SOUND_PROPERTIES_BEGIN (   Subclass,
  Class 
)
Value:
AM_SUBCLASS_BEGIN(Subclass, Class)\
bool reserved;\
std::unordered_map<am_CustomSoundPropertyType_t, int16_t> cacheSoundProperties;\
std::unordered_map<am_CustomMainSoundPropertyType_t, int16_t> cacheMainSoundProperties;\
AM_SUBCLASS_CONSTR(Subclass, Class)\
,reserved(false), cacheSoundProperties(), cacheMainSoundProperties()\
AM_SUBCLASS_COPY_OP_START(Subclass, Class)\
reserved = anObject.reserved;\
cacheSoundProperties = anObject.cacheSoundProperties;\
cacheMainSoundProperties = anObject.cacheMainSoundProperties;\
AM_SUBCLASS_OP(Subclass, Class)\
#define AM_SUBCLASS_COPY_OP_START(Subclass, Class)
#define AM_SUBCLASS_COPY_OP_END()
#define AM_SUBCLASS_BEGIN(Subclass, Class)
The following structures extend the base structures with the field 'reserved'.
#define AM_SUBCLASS_OP(Subclass, Class)
#define AM_SUBCLASS_CONSTR_BODY()
#define AM_SUBCLASS_CONSTR(Subclass, Class)

Definition at line 257 of file CAmDatabaseHandlerMap.h.