ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/openbabel/obconversion.hpp
(Generate patch)

Comparing trunk/src/openbabel/obconversion.hpp (file contents):
Revision 1080 by gezelter, Mon Dec 12 19:32:50 2005 UTC vs.
Revision 1081 by gezelter, Thu Oct 19 20:49:05 2006 UTC

# Line 41 | Line 41 | GNU General Public License for more details.
41   #include <string>
42   #include <vector>
43   #include <map>
44 #include <typeinfo>
44  
45 < //#include "dlhandler.h"
45 > #include "dlhandler.hpp"
46  
47   // These macros are used in DLL builds. If they have not
48 < // been set in babelconfig.h, define them as nothing.
48 > // been set in config.h, define them as nothing.
49   #ifndef OBCONV
50          #define OBCONV
51   #endif
# Line 89 | Line 88 | class OBCONV OBFormat (public)
88          /// Reads a single object.
89          /// Does not make a new object on the heap;
90          /// can be used with a pointer to an chem object on the heap or the stack.
91 <        virtual bool ReadMolecule(OBBase* pOb, OBConversion* pConv)
91 >      virtual bool ReadMolecule(OBBase* /*pOb*/, OBConversion* /*pConv*/)
92                  { std::cerr << "Not a valid input format"; return false;}
93  
94          /// @brief The "Convert" interface Read function.
# Line 97 | Line 96 | class OBCONV OBFormat (public)
96          /// Possibly reads multiple new objects on the heap and subjects them
97          /// to its DoTransformations() function, which may delete them again.
98          /// Sends result to pConv->AddChemObject()
99 <        virtual bool ReadChemObject(OBConversion* pConv)
99 >      virtual bool ReadChemObject(OBConversion* /*pConv*/)
100                  { std::cerr << "Not a valid input format"; return false;}
101  
102          /// @brief The "API" interface Write function.
# Line 106 | Line 105 | class OBCONV OBFormat (public)
105          /// Does not delete the object;
106          /// can be used with a pointer to an chem object on the heap or the stack.
107          /// Returns false on error.
108 <        virtual bool WriteMolecule(OBBase* pOb, OBConversion* pConv)
108 >      virtual bool WriteMolecule(OBBase* /*pOb*/, OBConversion* /*pConv*/)
109                  { std::cerr << "Not a valid output format"; return false;}
110  
111          /// @brief The "Convert" interface Write function.
# Line 114 | Line 113 | class OBCONV OBFormat (public)
113          /// Writes a single object
114          /// Deletes the object after writing
115          /// Returns false on error
116 <        virtual bool WriteChemObject(OBConversion* pConv)
116 >      virtual bool WriteChemObject(OBConversion* /*pConv*/)
117                  { std::cerr << "Not a valid output format"; return false;}
118  
119          /// @brief Information on this format. Printed out in response to -Hxxx option where xxx id the id of the format.
# Line 151 | Line 150 | class OBCONV OBFormat (public)
150          /// @brief Skip past first n objects in input stream (or current one with n=0)
151  
152          /// Returns 1 on success, -1 on error and 0 if not implemented
153 <        virtual int SkipObjects(int n, OBConversion* pConv)
153 >      virtual int SkipObjects(int /*n*/, OBConversion* /*pConv*/)
154          {
155                  return 0; //shows not implemented in the format class
156          };
# Line 380 | Line 379 | class OBCONV OBConversion (protected)
379          bool              MoreFilesToCome;
380          bool              OneObjectOnly;
381          bool              ReadyToInput;
382 +        bool              CheckedForGzip; ///< input stream was already checked if it is gzip-encoded
383          static int FormatFilesLoaded;
384          OBBase*           pOb1;
385          std::streampos wInpos; ///<position in the input stream of the object being written

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines