 |
Bsoft
2.1.0
Bernard's software package
|
Go to the documentation of this file.
23 int i, n, m, l1, l2, l3, readflag;
36 for ( i=1, filename = file_list; filename; filename = filename->
next, i++ ) {
38 cout <<
"Reading file: " << *filename << endl;
39 fmod.open(filename->
c_str());
40 if ( fmod.fail() )
return NULL;
43 while ( fmod.getline(aline, 200) && fmod.good() ) {
45 sscanf(aline,
"%d %f %f %f %d %d %d", &n, &x, &y, &z, &l1, &l2, &l3);
59 if ( strstr(aline,
"writegraph3d planar") ) {
72 for ( comp = mp->
comp; comp; comp = comp->
next ) car[comp->
sel] = comp;
73 for ( comp = mp->
comp; comp; comp = comp->
next ) {
76 if ( comp->
sel < comp->
flag[n] ) {
105 for ( n=0, mp =
model; mp; mp = mp->
next, n++ ) {
110 fmod.open(onename.
c_str());
111 if ( fmod.fail() )
return -1;
112 fmod <<
">>writegraph3d planar <<" << endl;
113 for ( comp = mp->
comp; comp; comp = comp->
next )
115 comp->
loc[0] <<
" " << comp->
loc[1] <<
" " << comp->
loc[2] <<
" " <<
Header file for reading and writing atomic model files.
Bcomponent * component_add(Bcomponent **comp, Bstring &id)
Adds a component to a linked list.
Blink * link_add(Blink **link, Bcomponent *comp1, Bcomponent *comp2, double length, double radius)
Adds a component link to a linked list.
int write_model_vega(Bstring &filename, Bmodel *model)
Writes Vega model parameters.
Bmodel * read_model_vega(Bstring *file_list)
Reads Vega model parameters.
Header file for general utilities.
Bmodel * model_add(Bmodel **model, Bstring &id)
Adds a model to a linked list.
Bcomptype * model_add_type_by_id(Bmodel *model, Bstring &id)
Add a type to a model if the identifier does not exist already.
Bcomponent * link[MAXLINK]