Hello rooters,, this is my first mail to this list. Firstly, Root/Cint is SUPERB. I am trying to makecint a class...its similar to the Complex class example in the tutorial provided in cint. the class is : ************************************************************ #ifndef DATACLASS_H #define DATACLASS_H using namespace std; class ResiduePara { char singleLetterCode_; string threeLetterCode_; int serialNumber_; public: ResiduePara(){} ResiduePara(int sn, char slc, string tlc): singleLetterCode_(slc),threeLetterCode_(tlc), serialNumber_(sn){} char singleLetterCode() const { return singleLetterCode_; } string threeLetterCode() const { return threeLetterCode_; } int serialNumber() const { return serialNumber_; } }; class DataClass : public ResiduePara { void setDefaults(); public: DataClass(){ setDefaults(); } static map<string,ResiduePara>residuepara; }; map<string,ResiduePara>DataClass::residuepara; void DataClass::setDefaults() { residuepara["ALA"] = ResiduePara(0,'A',"ALA"); residuepara["ARG"] = ResiduePara(0,'R',"ARG"); residuepara["ASN"] = ResiduePara(0,'N',"ASN"); residuepara["ASP"] = ResiduePara(0,'D',"ASP"); residuepara["ASX"] = ResiduePara(0,'B',"ASX"); residuepara["CYS"] = ResiduePara(0,'C',"CYS"); residuepara["GLN"] = ResiduePara(0,'Q',"GLN"); residuepara["GLU"] = ResiduePara(0,'E',"GLU"); residuepara["GLX"] = ResiduePara(0,'Z',"GLX"); residuepara["GLY"] = ResiduePara(0,'G',"GLY"); residuepara["HIS"] = ResiduePara(0,'H',"HIS"); residuepara["ILE"] = ResiduePara(0,'I',"ILE"); residuepara["LEU"] = ResiduePara(0,'L',"LEU"); residuepara["LYS"] = ResiduePara(0,'K',"LYS"); residuepara["MET"] = ResiduePara(0,'M',"MET"); residuepara["PHE"] = ResiduePara(0,'F',"PHE"); residuepara["PRO"] = ResiduePara(0,'P',"PRO"); residuepara["SER"] = ResiduePara(0,'S',"SER"); residuepara["THR"] = ResiduePara(0,'T',"THR"); residuepara["TRP"] = ResiduePara(0,'W',"TRP"); residuepara["TYR"] = ResiduePara(0,'Y',"TYR"); residuepara["UNK"] = ResiduePara(0,' ',"UNK"); residuepara["VAL"] = ResiduePara(0,'V',"VAL"); } #endif ****************************************************** its giving the following error: only part of the error... /usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/../../../../include/g++-3/stl_tree.h:776: instantiated from here /usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/../../../../include/g++-3/stl_pair.h:62: no match for `const ResiduePara & < const ResiduePara &' /usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/../../../../include/g++-3/stl_pair.h:62: warning: control reaches end of non-void function `operator <<const string, ResiduePara>(const pair<const basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> >,ResiduePara> &, const pair<const basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> >,ResiduePara> &)' make: *** [G__cpp_BioBhasha.o] Error 1 how to over come this problem...or is this a limitation.... Please pardon , I am ignorant.... Hoping that somebody will help me out of this .... thankyou in advance... sincerely, prasad
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:41 MET