source: PSPA/Interface_Web/trunk/pspaWT/include/elementsCollection.h @ 230

Last change on this file since 230 was 230, checked in by lemeur, 11 years ago

fin implementation fit

File size: 680 bytes
Line 
1#ifndef ELEMENTSCOLLECTION_SEEN
2#define ELEMENTSCOLLECTION_SEEN
3
4
5#include <iostream>
6#include <string>
7#include <vector>
8
9#include "abstractElement.h"
10#include "nomdElements.h"
11
12class elementsCollection
13{
14
15  vector <abstractElement*> elements_;
16
17 public :
18
19  elementsCollection() {;}
20  ~elementsCollection();
21
22  void raz();
23  unsigned size(); 
24  abstractElement* addElement(typedElement elemType);
25  abstractElement* getElementPointer(string label) const;
26  abstractElement* getElementPointerFromIndex(unsigned int index) const;
27  abstractElement* getElementPointerFromNumero(int num) const;
28
29  int getNumeroFromLabel(string lab);
30
31  void eraseElement(string label);
32
33};
34#endif
Note: See TracBrowser for help on using the repository browser.