Main Page | Class Hierarchy | Compound List | File List | Compound Members

BxDimension.h

00001 // ##################################################################
00002 // Binx
00003 // $Id: BxDimension_8h-source.html,v 1.1.1.1 2006/04/19 14:19:02 edikt2 Exp $
00004 //
00005 // Class for dimensions of arrays.
00006 // ##################################################################
00007 /*
00008 
00009 //  edikt::BinX
00010 //  www.edikt.org
00011 //  support@edikt.org
00012 
00013 // Copyright (c) 2003 The University of Edinburgh.
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_;   //<zero-based first element number, normally 0
00039     int     indexTo_;  //<zero-based last element number
00040     char *  name_;  //<name of this dimension
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"; } //<Returns the null-terminated string "BxDimension".
00048     char * toString(bool close); //XML <dim name="name_" indexTo=""
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

Generated on Fri May 6 13:36:17 2005 for edikt::BinX by doxygen 1.3.3