AudioManager  7.6.6
Native Application Runtime Environment
CAmDatabaseHandlerMap.cpp File Reference

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

#include <iostream>
#include <cassert>
#include <stdexcept>
#include <vector>
#include <fstream>
#include <sstream>
#include <string>
#include <limits>
#include "CAmDatabaseHandlerMap.h"
#include "CAmRouter.h"
#include "CAmDltWrapper.h"

Go to the source code of this file.

Namespaces

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

Macros

#define __METHOD_NAME__   std::string (std::string("CAmDatabaseHandlerMap::") + __func__)
 
#define DB_COND_UPDATE_RIE(x, y)   x = y
 
#define DB_COND_UPDATE_INIT
 
#define DB_COND_UPDATE(x, y)   x = y
 
#define DB_COND_ISMODIFIED   (true)
 
#define NOTIFY_OBSERVERS(CALL)
 
#define NOTIFY_OBSERVERS1(CALL, ARG1)
 
#define NOTIFY_OBSERVERS2(CALL, ARG1, ARG2)
 
#define NOTIFY_OBSERVERS3(CALL, ARG1, ARG2, ARG3)
 
#define NOTIFY_OBSERVERS4(CALL, ARG1, ARG2, ARG3, ARG4)
 

Functions

template<typename T >
bool am::isDataEqual (const T &left, const T &right)
 
template<typename T , typename L = std::vector<T>>
bool am::isDataEqual (const L &left, const L &right)
 
template<typename TMapKeyType , class TMapObjectType >
TMapObjectType const * am::objectForKeyIfExistsInMap (const TMapKeyType &key, const std::unordered_map< TMapKeyType, TMapObjectType > &map)
 
template<typename TMapKeyType , class TMapObjectType >
bool am::existsObjectWithKeyInMap (const TMapKeyType &key, const std::unordered_map< TMapKeyType, TMapObjectType > &map)
 
template<class TReturn , typename TIdentifier >
const TReturn * am::objectMatchingPredicate (const std::unordered_map< TIdentifier, TReturn > &map, std::function< bool(const TReturn &refObject)> comparator)
 Returns an object matching predicate. More...
 
bool am::changeMainNotificationConfiguration (std::vector< am_NotificationConfiguration_s > &listMainNotificationConfigurations, const am_NotificationConfiguration_s &mainNotificationConfiguration)
 
bool am::changeNotificationConfiguration (std::vector< am_NotificationConfiguration_s > &listNotificationConfigurations, const am_NotificationConfiguration_s &notificationConfiguration)
 

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.cpp.

Macro Definition Documentation

#define __METHOD_NAME__   std::string (std::string("CAmDatabaseHandlerMap::") + __func__)

Definition at line 36 of file CAmDatabaseHandlerMap.cpp.

#define DB_COND_ISMODIFIED   (true)

Definition at line 54 of file CAmDatabaseHandlerMap.cpp.

#define DB_COND_UPDATE (   x,
 
)    x = y

Definition at line 52 of file CAmDatabaseHandlerMap.cpp.

#define DB_COND_UPDATE_INIT

Definition at line 51 of file CAmDatabaseHandlerMap.cpp.

#define DB_COND_UPDATE_RIE (   x,
 
)    x = y

Definition at line 49 of file CAmDatabaseHandlerMap.cpp.

#define NOTIFY_OBSERVERS (   CALL)
Value:
for(AmDatabaseObserverCallbacks * nextObserver: mDatabaseObservers)\
if(nextObserver->CALL)\
nextObserver->CALL();

Definition at line 59 of file CAmDatabaseHandlerMap.cpp.

#define NOTIFY_OBSERVERS1 (   CALL,
  ARG1 
)
Value:
for(AmDatabaseObserverCallbacks * nextObserver: mDatabaseObservers)\
if(nextObserver->CALL)\
nextObserver->CALL(ARG1);

Definition at line 64 of file CAmDatabaseHandlerMap.cpp.

#define NOTIFY_OBSERVERS2 (   CALL,
  ARG1,
  ARG2 
)
Value:
for(AmDatabaseObserverCallbacks * nextObserver: mDatabaseObservers)\
if(nextObserver->CALL)\
nextObserver->CALL(ARG1, ARG2);

Definition at line 69 of file CAmDatabaseHandlerMap.cpp.

#define NOTIFY_OBSERVERS3 (   CALL,
  ARG1,
  ARG2,
  ARG3 
)
Value:
for(AmDatabaseObserverCallbacks * nextObserver: mDatabaseObservers)\
if(nextObserver->CALL)\
nextObserver->CALL(ARG1, ARG2, ARG3);

Definition at line 74 of file CAmDatabaseHandlerMap.cpp.

#define NOTIFY_OBSERVERS4 (   CALL,
  ARG1,
  ARG2,
  ARG3,
  ARG4 
)
Value:
for(AmDatabaseObserverCallbacks * nextObserver: mDatabaseObservers)\
if(nextObserver->CALL)\
nextObserver->CALL(ARG1, ARG2, ARG3, ARG4);

Definition at line 79 of file CAmDatabaseHandlerMap.cpp.