btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / headers / private / debugger / model / Variable.h
blob33fad51d78b90c21d51a7b8a89a6540c68b36898
1 /*
2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef VARIABLE_H
6 #define VARIABLE_H
9 #include <String.h>
11 #include <Referenceable.h>
14 class CpuState;
15 class ObjectID;
16 class Type;
17 class ValueLocation;
20 class Variable : public BReferenceable {
21 public:
22 Variable(ObjectID* id, const BString& name,
23 Type* type, ValueLocation* location,
24 CpuState* state = NULL);
25 ~Variable();
27 ObjectID* ID() const { return fID; }
28 const BString& Name() const { return fName; }
29 Type* GetType() const { return fType; }
30 ValueLocation* Location() const { return fLocation; }
31 CpuState* GetCpuState() const { return fCpuState; }
33 private:
34 ObjectID* fID;
35 BString fName;
36 Type* fType;
37 ValueLocation* fLocation;
38 CpuState* fCpuState;
42 #endif // VARIABLE_H