00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __BxDimension__
00018 #define __BxDimension__
00019
00020 #include "BxObject.h"
00021
00036 class DECLSPEC BxDimension : public BxObject
00037 {
00038 int indexFrom_;
00039 int indexTo_;
00040 char * name_;
00041 public:
00042 BxDimension();
00043 BxDimension(int from, int to, const char * name);
00044 BxDimension(const BxDimension& copy);
00045 virtual ~BxDimension();
00046
00047 virtual char * className() const { return "BxDimension"; }
00048 char * toString(bool close);
00049
00050 int getIndexFrom() { return indexFrom_; }
00051 int getIndexTo() { return indexTo_; }
00052 int getCount() { return indexTo_+1; }
00053 char * getName() { return name_; }
00054
00055 void setIndexFrom(int from) { indexFrom_ = from; }
00056 void setIndexTo(int to) { indexTo_ = to; }
00057 void setName(char * name);
00058 void copyName(const char * name);
00059 };
00060
00061 #endif