xbmc
Dictionary.h
1 /*
2  * Copyright (C) 2005-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include "AddonString.h"
12 
13 #include <map>
14 
15 namespace XBMCAddon
16 {
17  // This is a hack in order to handle int's as strings. The correct fix for
18  // this is to get rid of Alternative all together and make the codegenerator
19  // finally handle overloading correctly.
20  typedef String StringOrInt;
21 
31  template<class T> class Dictionary : public std::map<String,T> {};
32 
34 }
Defining LOG_LIFECYCLE_EVENTS will log all instantiations, deletions and also reference countings (in...
Definition: Addon.cpp:25
This is a bit of a hack for dynamically typed languages.
Definition: Dictionary.h:31