1 |
< |
/* |
1 |
> |
/* |
2 |
|
* Copyright (c) 2005 The University of Notre Dame. All Rights Reserved. |
3 |
|
* |
4 |
|
* The University of Notre Dame grants you ("Licensee") a |
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 |