1 |
mmeineke |
377 |
#ifndef __MOLECULESTAMP_H__ |
2 |
|
|
#define __MOLECULESTAMP_H__ |
3 |
|
|
|
4 |
|
|
#include "AtomStamp.hpp" |
5 |
|
|
#include "BondStamp.hpp" |
6 |
|
|
#include "BendStamp.hpp" |
7 |
|
|
#include "TorsionStamp.hpp" |
8 |
gezelter |
957 |
#include "RigidBodyStamp.hpp" |
9 |
mmeineke |
377 |
#include "LinkedAssign.hpp" |
10 |
|
|
|
11 |
|
|
class MoleculeStamp{ |
12 |
|
|
|
13 |
|
|
public: |
14 |
|
|
MoleculeStamp(); |
15 |
|
|
~MoleculeStamp(); |
16 |
|
|
|
17 |
|
|
char* assignString( char* lhs, char* rhs ); |
18 |
|
|
char* assignDouble( char* lhs, double rhs ); |
19 |
|
|
char* assignInt( char* lhs, int rhs ); |
20 |
|
|
char* checkMe( void ); |
21 |
|
|
|
22 |
|
|
char* addAtom( AtomStamp* the_atom, int atomIndex ); |
23 |
gezelter |
957 |
char* addRigidBody( RigidBodyStamp* the_rigidbody, int rigidBodyIndex ); |
24 |
mmeineke |
377 |
char* addBond( BondStamp* the_bond, int bondIndex ); |
25 |
|
|
char* addBend( BendStamp* the_bend, int bendIndex ); |
26 |
|
|
char* addTorsion( TorsionStamp* the_torsion, int torsionIndex ); |
27 |
|
|
|
28 |
|
|
char* getID( void ) { return name; } |
29 |
|
|
int getNAtoms( void ) { return n_atoms; } |
30 |
|
|
int getNBonds( void ) { return n_bonds; } |
31 |
|
|
int getNBends( void ) { return n_bends; } |
32 |
|
|
int getNTorsions( void ) { return n_torsions; } |
33 |
gezelter |
957 |
int getNRigidBodies(void){ return n_rigidbodies; } |
34 |
mmeineke |
377 |
|
35 |
|
|
AtomStamp* getAtom( int index ) { return atoms[index]; } |
36 |
|
|
BondStamp* getBond( int index ) { return bonds[index]; } |
37 |
|
|
BendStamp* getBend( int index ) { return bends[index]; } |
38 |
|
|
TorsionStamp* getTorsion( int index ) { return torsions[index]; } |
39 |
gezelter |
957 |
RigidBodyStamp* getRigidBody( int index ) { return rigidBodies[index]; } |
40 |
mmeineke |
377 |
|
41 |
mmeineke |
583 |
int haveExtras( void ) { return have_extras; } |
42 |
|
|
LinkedAssign* getUnhandled( void ) { return unhandled; } |
43 |
|
|
|
44 |
mmeineke |
377 |
static char errMsg[500]; |
45 |
|
|
private: |
46 |
|
|
|
47 |
|
|
|
48 |
|
|
char name[100]; |
49 |
|
|
int n_atoms; |
50 |
|
|
int n_bonds; |
51 |
|
|
int n_bends; |
52 |
|
|
int n_torsions; |
53 |
gezelter |
957 |
int n_rigidbodies; |
54 |
mmeineke |
377 |
|
55 |
|
|
int have_name, have_atoms, have_bonds, have_bends, have_torsions; |
56 |
gezelter |
957 |
int have_rigidbodies; |
57 |
mmeineke |
377 |
|
58 |
|
|
AtomStamp** atoms; |
59 |
|
|
BondStamp** bonds; |
60 |
|
|
BendStamp** bends; |
61 |
|
|
TorsionStamp** torsions; |
62 |
gezelter |
957 |
RigidBodyStamp** rigidBodies; |
63 |
mmeineke |
377 |
|
64 |
|
|
LinkedAssign* unhandled; // the unhandled assignments |
65 |
|
|
short int have_extras; |
66 |
|
|
}; |
67 |
|
|
|
68 |
|
|
#endif |