BioInt
1.02.00
BioInt: An integrative biological object-oriented application framework and interpreter
|
00001 /**************************************************************************** 00002 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 00003 The BioBhasha : A Programming Language for Biologist 00004 Version 1.0 (19th December 2001) 00005 Dr. Prasad, B.V.L.S. 00006 Contact: prasadbvls@helixgenomics.com 00007 Version 1.1 (23th January 2003) 00008 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 00009 *****************************************************************************/ 00010 #ifndef BIOELEMENT_H 00011 #define BIOELEMENT_H 00012 00013 using namespace std; 00014 #include <string> 00015 #include <map> 00016 #include <iostream> 00017 00018 00019 class BioElement 00020 { 00021 static bool isInitialised; 00022 int atomicNumber_; 00023 string elementCode_; 00024 string elementName_; 00025 float atomicMass_; 00026 float atomicRadius_; 00027 float atomicScatteringFactor_; 00028 // double atomicColour_; 00029 friend bool operator >(const BioElement& , const BioElement&); 00030 friend bool operator <(const BioElement& , const BioElement&); 00031 friend bool operator ==(const BioElement& , const BioElement&); 00032 00033 BioElement(){}; 00034 public: 00035 00036 ~BioElement(); 00037 BioElement(const int& eNum,const string& eCode,const string& eName, 00038 const float& eMass,const float& eRad, const float& eScF) 00039 : atomicNumber_(eNum), elementCode_(eCode), elementName_(eName), 00040 atomicMass_(eMass), atomicRadius_(eRad), 00041 atomicScatteringFactor_(eScF){} 00042 //, atomicColour_(eCol){} 00043 00044 int getAtomicNumber() const { return atomicNumber_; } 00045 string getElementName() const { return elementName_; } 00046 string getElementCode() const { return elementCode_; } 00047 float getAtomicMass() const { return atomicMass_; } 00048 float getAtomicRadius() const { return atomicRadius_; } 00049 float getAtomicScatteringFactor() const { return atomicScatteringFactor_; } 00050 00051 //double getAtomicColour() const { return atomicColour_; } 00052 }; 00053 00054 #endif