ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libBASS/MakeStamps.hpp
Revision: 957
Committed: Mon Jan 19 16:08:21 2004 UTC (20 years, 5 months ago) by gezelter
File size: 2466 byte(s)
Log Message:
BASS changes to add RigidBodies and LJrcut

File Contents

# Content
1 #ifndef __MAKESTAMPS_H__
2 #define __MAKESTAMPS_H__
3
4 #include <stdlib.h>
5 #include <string.h>
6
7 #include "BASS_interface.h"
8 #include "MoleculeStamp.hpp"
9 #include "AtomStamp.hpp"
10 #include "BondStamp.hpp"
11 #include "BendStamp.hpp"
12 #include "TorsionStamp.hpp"
13 #include "RigidBodyStamp.hpp"
14
15 class LinkedMolStamp{
16
17 public:
18 LinkedMolStamp(){ mol_stamp = NULL; next = NULL; prev = NULL; }
19 ~LinkedMolStamp();
20
21 MoleculeStamp* match( char* id );
22 LinkedMolStamp* extract( char* id );
23 void setStamp( MoleculeStamp* the_stamp ){ mol_stamp = the_stamp; }
24 MoleculeStamp* getStamp(){ return mol_stamp; }
25 void add( LinkedMolStamp* newbie );
26 void setPrev( LinkedMolStamp* thePrev ){ prev = thePrev; }
27 void setNext( LinkedMolStamp* theNext ){ next = theNext; }
28 LinkedMolStamp* getNext() { return next; }
29
30 private:
31 MoleculeStamp* mol_stamp;
32 LinkedMolStamp* next;
33 LinkedMolStamp* prev;
34 };
35
36 class MakeStamps{
37
38 public:
39 MakeStamps();
40 ~MakeStamps();
41
42 int newMolecule( event* the_event );
43 int moleculeAssign( event* the_event );
44 int moleculeEnd( event* the_event );
45
46 int newAtom( event* the_event );
47 int atomPosition( event* the_event );
48 int atomOrientation( event* the_event );
49 int atomAssign( event* the_event );
50 int atomEnd( event* the_event );
51
52 int newRigidBody( event* the_event );
53 int rigidBodyPosition( event* the_event );
54 int rigidBodyOrientation( event* the_event );
55 int rigidBodyAssign( event* the_event );
56 int rigidBodyEnd( event* the_event );
57
58 int newBond( event* the_event );
59 int bondAssign( event* the_event );
60 int bondMember( event* the_event );
61 int bondConstraint( event* the_event );
62 int bondEnd( event* the_event );
63
64 int newBend( event* the_event );
65 int bendAssign( event* the_event );
66 int bendMember( event* the_event );
67 int bendConstraint( event* the_event );
68 int bendEnd( event* the_event );
69
70 int newTorsion( event* the_event );
71 int torsionAssign( event* the_event );
72 int torsionMember( event* the_event );
73 int torsionConstraint( event* the_event );
74 int torsionEnd( event* the_event );
75
76 LinkedMolStamp* extractMolStamp( char* the_id );
77
78 private:
79
80 int hash_size;
81 int hash_shift;
82 int hash( char* text );
83 LinkedMolStamp** my_mols;
84 void addMolStamp( MoleculeStamp* the_stamp );
85
86 MoleculeStamp* current_mol;
87 AtomStamp* current_atom;
88 BondStamp* current_bond;
89 BendStamp* current_bend;
90 TorsionStamp* current_torsion;
91 RigidBodyStamp* current_rigidbody;
92
93 };
94
95
96
97
98 #endif