> In first line (1) I declare a pointer to OBOp type named pOp and what I dont
> understand is what am I really assigning, is OBOP a namespace? and what does
> this line really do?

OBOp is a general C++ class. There are different types of “Op”s that perform 
operations on molecules. This first line tells Open Babel to find the “gen2D” 
operation (to generate a 2D depiction).

> In second line I pass &mol2 object to method Do, What does this method
> really do?

Since the code selected the gen2D operation, it generates 2D coordinates for 
the mol2 object.

Hope that helps,
-Geoff

---
Prof. Geoffrey Hutchison
Department of Chemistry
University of Pittsburgh
tel: (412) 648-0492
email: geo...@pitt.edu
twitter: @ghutchis
web: https://hutchison.chem.pitt.edu/
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenBabel-Devel mailing list
OpenBabel-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-devel

Reply via email to