ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/headers/MoleculeStamp.hpp
Revision: 11
Committed: Tue Jul 9 18:40:59 2002 UTC (21 years, 11 months ago) by mmeineke
File size: 1493 byte(s)
Log Message:
This commit was generated by cvs2svn to compensate for changes in r10, which
included commits to RCS files with non-trunk default branches.

File Contents

# Content
1 #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 #include "LinkedAssign.hpp"
9
10 class MoleculeStamp{
11
12 public:
13 MoleculeStamp();
14 ~MoleculeStamp();
15
16 void assignString( char* lhs, char* rhs );
17 void assignDouble( char* lhs, double rhs );
18 void assignInt( char* lhs, int rhs );
19 char* checkMe( void );
20
21 char* addAtom( AtomStamp* the_atom, int atomIndex );
22 char* addBond( BondStamp* the_bond, int bondIndex );
23 char* addBend( BendStamp* the_bend, int bendIndex );
24 char* addTorsion( TorsionStamp* the_torsion, int torsionIndex );
25
26 char* getID( void ) { return name; }
27 int getNAtoms( void ) { return n_atoms; }
28 int getNBonds( void ) { return n_bonds; }
29 int getNBends( void ) { return n_bends; }
30 int getNTorsions( void ) { return n_torsions; }
31
32 AtomStamp* getAtom( int index ) { return atoms[index]; }
33 BondStamp* getBond( int index ) { return bonds[index]; }
34 BendStamp* getBend( int index ) { return bends[index]; }
35 TorsionStamp* getTorsion( int index ) { return torsions[index]; }
36
37 private:
38
39 char name[100];
40 int n_atoms;
41 int n_bonds;
42 int n_bends;
43 int n_torsions;
44
45 int have_name, have_atoms, have_bonds, have_bends, have_torsions;
46
47 AtomStamp** atoms;
48 BondStamp** bonds;
49 BendStamp** bends;
50 TorsionStamp** torsions;
51
52 LinkedAssign* unhandled; // the unhandled assignments
53 short int have_extras;
54 };
55
56 #endif