Drive Engine  1.0.0
Plateforme de reconstruction 3D
IDictionnary.h
1 // Copyright (c) 2015. All rights reserved to DriveEngine Team.
2 
3 #pragma once
4 
5 #include "ICollection.h"
6 
7 namespace DriveEngine
8 {
17  class IDictionnary : public ICollection
18  {
19  public:
37  virtual IExportable* GetElement(const IExportable &key) const = 0;
38 
56  virtual const IExportable* GetConstElement(const IExportable &key) const = 0;
57 
76  virtual void Add(const IExportable &key, IExportable &element) = 0;
77 
87  virtual void Remove(const IExportable &key) = 0;
88 
106  virtual void AddDictionnary(const IDictionnary &dictionnary) = 0;
107 
125  virtual void RemoveDictionnary(const IDictionnary &dictionnary) = 0;
126  };
127 }
virtual void Add(const IExportable &key, IExportable &element)=0
Adds an element.
The dictionnary interface.
Definition: IDictionnary.h:17
virtual IExportable * GetElement(const IExportable &key) const =0
Gets an element.
virtual void AddDictionnary(const IDictionnary &dictionnary)=0
Adds every element from an other dictionnary.
Definition: DefaultCalibrationInfoList.h:12
virtual void RemoveDictionnary(const IDictionnary &dictionnary)=0
Removes every element common to an other dictionnary.
The collection interface.
Definition: ICollection.h:26
The main interface
Definition: IExportable.h:12
virtual const IExportable * GetConstElement(const IExportable &key) const =0
Gets a constant element.
virtual void Remove(const IExportable &key)=0
Removes an element, if found. Oterwise, nothing is done.