summaryrefslogtreecommitdiff
path: root/include/Variables.h
blob: ac4ef5848e9ae0c51dc788cc3e49f68b2c05a5bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef __VARIABLES_H__
#define __VARIABLES_H__

#include <vector>
#include <BString.h>
#include <Handle.h>
#include <Exceptions.h>

class Variables : public Base {
  public:
      Variables(int = 0);
      Variables(const Variables &);
      ~Variables();
    void SetTo(int i, const String &);
    String operator[](const String &);
    String operator[](int i);
    void Dump(Handle *, const String & = "");
    int GetNb();
    void Add(const String &);
    void Del(int);
    void Del(const String &);

  private:
    std::vector<String> Vars;
    int nbvars;
};

#endif