ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-3.0/src/types/BondStamp.hpp
(Generate patch)

Comparing trunk/OOPSE-3.0/src/types/BondStamp.hpp (file contents):
Revision 2204 by gezelter, Fri Apr 15 22:04:00 2005 UTC vs.
Revision 2469 by tim, Fri Dec 2 15:38:03 2005 UTC

# Line 42 | Line 42
42   #ifndef TYPES_BONDSTAMP_HPP
43   #define TYPES_BONDSTAMP_HPP
44  
45 < #include "io/LinkedAssign.hpp"
45 > #include "types/DataHolder.hpp"
46  
47 < class BondStamp{
47 > namespace oopse {
48 > class BondStamp : public DataHolder {
49  
50 < public:
51 <  BondStamp();
52 <  ~BondStamp();
53 <  
54 <  void assignString( char* lhs, char* rhs );
55 <  void assignDouble( char* lhs, double rhs );
56 <  void assignInt( char* lhs, int rhs );
57 <  void members( int the_a, int the_b );
57 <  void constrain( double the_constraint );
58 <  char* checkMe( void );
50 >    public:
51 >      bool setMembers(std::vector<int> members) {
52 >        bool ret = false;
53 >        if (members.size() ==2) {
54 >            a = members[0];
55 >            b = members[1];
56 >            ret = true;
57 >        }
58  
59 <  int getA( void ){ return a; }
60 <  int getB( void ){ return b; }
61 <
62 <  int haveExtras( void ) { return have_extras; }
63 <  LinkedAssign* getExtras( void ) { return unhandled; }
64 <
65 < private:
66 <
68 <  int a, b; //the members
69 <  double constraint;
70 <  short int have_mbrs, have_constraint;
71 <
72 <  LinkedAssign* unhandled; // the unhandled assignments
73 <  short int have_extras;
74 <
59 >        return ret;
60 >      }
61 >      
62 >      int getA() {return a;}
63 >      int getB() {return b;}
64 >    private:
65 >        int a;
66 >        int b;
67   };
68  
69 <
69 > }
70   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines