moss-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Moss-devel] CVS: moss/odb/include atom.h,1.1.1.1,1.2 atomdata.h,1.1.1.


From: Alexander Feder <address@hidden>
Subject: [Moss-devel] CVS: moss/odb/include atom.h,1.1.1.1,1.2 atomdata.h,1.1.1.1,1.2 atomdata3dpoint.h,1.1.1.1,1.2 atomdatabinary.h,1.1.1.1,1.2 atomdatafile.h,1.1.1.1,1.2 atomdatafilelink.h,1.1.1.1,1.2 atomdatainteger.h,1.1.1.1,1.2 atomdatareal.h,1.1.1.1,1.2 atomdatastring.h,1.1.1.1,1.2 class.h,1.1.1.1,1.2 generic.h,1.1.1.1,1.2 keyname.h,1.1.1.1,1.2 object.h,1.1.1.1,1.2 odb.h,1.1.1.1,1.2 reason.h,1.1.1.1,1.2 root.h,1.1.1.1,1.2 rope.h,1.1.1.1,1.2 rtti.h,1.1.1.1,1.2 stream.h,1.1.1.1,1.2 transaction.h,1.1.1.1,1.2
Date: Thu, 12 Dec 2002 05:46:34 -0500

Update of /cvsroot/moss/moss/odb/include
In directory subversions:/tmp/cvs-serv7016/include

Modified Files:
        atom.h atomdata.h atomdata3dpoint.h atomdatabinary.h 
        atomdatafile.h atomdatafilelink.h atomdatainteger.h 
        atomdatareal.h atomdatastring.h class.h generic.h keyname.h 
        object.h odb.h reason.h root.h rope.h rtti.h stream.h 
        transaction.h 
Log Message:
doxygenization


Index: atom.h
===================================================================
RCS file: /cvsroot/moss/moss/odb/include/atom.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** atom.h      14 Mar 2002 23:08:13 -0000      1.1.1.1
--- atom.h      12 Dec 2002 10:46:31 -0000      1.2
***************
*** 31,34 ****
--- 31,39 ----
  #define __ATOM_H
  
+ /**
+  * @file 
+  * Atom.
+  */
+ 
  #if _MSC_VER >= 1000
  #pragma once
***************
*** 50,53 ****
--- 55,63 ----
  class CAtomDataBinary;
  
+ 
+ /**
+  * The Atom.
+  */
+ 
  class CAtom : public CRoot
    {
***************
*** 61,98 ****
      bool      m_bADO;
      CAtom*    m_poADO;
!     /// a bitmaped register, signalizing the usage of the member variables
      long      m_lMaskFields;
!     /// the id to assign a specific resource in an user dialog
      long      m_lDisplayResourceId;
!     /// the prefix for the UI
      string    m_sPrefix;
!     ///  the suffix for the UI
      string    m_sSuffix;
!     /// the format string to format the value for the UI
      string    m_sFormat;
  // ??    bool    m_bIs2Link;
  
!     // a sign, for use by clients (unknown purpose)
      long m_nUserSign;
  
!     // an empty string as "special" return argument
      static string s_sEmptyString;
! 
                   CAtom(CAtom& src);
    public:
                   CAtom();
                   CAtom(long lid);
                   CAtom(CAtom& src, bool bADO);
!              CAtom(const string& sName, bool bADO = false);
                   CAtom(const string& sName, CAtom& oADO, bool bADO = false);
               // assignement operators
               CAtom(const string& sName, long   src, bool bADO = false);
               CAtom(const string& sName, double src, bool bADO = false);
               CAtom(const string& sName, float  src, bool bADO = false);
               CAtom(const string& sName, const  string& src, bool bADO = 
false);
  // ??        CAtom(const string& sName, const  fstream& src, bool bADO = 
false);
               CAtom(const string& sName, void*  pData, long& nSizeInBytes, 
bool bADO = false);
-              CAtom(const string& sName, CAtomDataBinary* poData, bool bADO = 
false);
  
          virtual ~CAtom();
  
--- 71,197 ----
      bool      m_bADO;
      CAtom*    m_poADO;
!     /**
!      * a bitmaped register, signalizing the usage of the member variables.
!      */
      long      m_lMaskFields;
!     /**
!      * the id to assign a specific resource in an user dialog.
!      */
      long      m_lDisplayResourceId;
!     /**
!      * the prefix for the UI.
!      */
      string    m_sPrefix;
!     /**
!      * the suffix for the UI.
!      */
      string    m_sSuffix;
!     /**
!      * the format string to format the value for the UI.
!      */
      string    m_sFormat;
  // ??    bool    m_bIs2Link;
  
!     /**
!      * a sign, for use by clients (unknown purpose).
!      */
      long m_nUserSign;
  
!     /**
!      * an empty string as "special" return argument.
!      */
      static string s_sEmptyString;
!             /**
!              * Copyconstructor.
!              */
                   CAtom(CAtom& src);
    public:
+             /**
+              * Constructor.
+              */
                   CAtom();
+ 
+             /**
+              * Constructor.
+              * @param lid the id the atom shall get.
+              */
                   CAtom(long lid);
+                
+             /**
+              * Copyconstructor.
+              * @param src the atom to be copied.
+              * @param bADO unknown TODO.
+              */
                   CAtom(CAtom& src, bool bADO);
!                
!             /**
!              * Constructor.
!              * @param sName The atom's name.
!              * @param bADO unknown TODO.
!              */
!                CAtom(const string& sName, bool bADO = false);
!                
!             /**
!              * Constructor.
!              * @param sName The atom's name.
!              * @param bADO unknown TODO.
!              * @param oADO unknown TODO.
!              */
                   CAtom(const string& sName, CAtom& oADO, bool bADO = false);
               // assignement operators
+              //
+              
+            /**
+             * Constructor. Makes it possible to fill the atom with data at 
instanciation.
+             * @param sName The atom's name.
+             * @param src The data which the atom shall represent.
+             * @param bADO unknown TODO.
+             */
               CAtom(const string& sName, long   src, bool bADO = false);
+ 
+            /**
+             * Constructor. Makes it possible to fill the atom with data at 
instanciation.
+             * @param sName The atom's name.
+             * @param src The data which the atom shall represent.
+             * @param bADO unknown TODO.
+             */
               CAtom(const string& sName, double src, bool bADO = false);
+ 
+            /**
+             * Constructor. Makes it possible to fill the atom with data at 
instanciation.
+             * @param sName The atom's name.
+             * @param src The data which the atom shall represent.
+             * @param bADO unknown TODO.
+             */
               CAtom(const string& sName, float  src, bool bADO = false);
+ 
+            /**
+             * Constructor. Makes it possible to fill the atom with data at 
instanciation.
+             * @param sName The atom's name.
+             * @param src The data which the atom shall represent.
+             * @param bADO unknown TODO.
+             */
               CAtom(const string& sName, const  string& src, bool bADO = 
false);
  // ??        CAtom(const string& sName, const  fstream& src, bool bADO = 
false);
+ 
+            /**
+             * Constructor. Makes it possible to fill the atom with data at 
instanciation.
+             * @param sName The atom's name.
+             * @param pData The data which the atom shall represent.
+             * @param nSizeInBytes the length of the data.
+             * @param bADO unknown TODO.
+             */
               CAtom(const string& sName, void*  pData, long& nSizeInBytes, 
bool bADO = false);
  
+            /**
+             * Constructor. Makes it possible to fill the atom with data at 
instanciation.
+             * @param sName The atom's name.
+             * @param poData another atom's binarydata which the atom shall 
represent as well.
+             * @param bADO unknown TODO.
+             */
+              CAtom(const string& sName, CAtomDataBinary* poData, bool bADO = 
false);
+            /**
+             * Destructor.
+             */
          virtual ~CAtom();
  
***************
*** 102,114 ****
      virtual timeval TimeStampGet();
  
!     /// returns the size of the encapsulated data in octets (8bit - bytes)
      virtual long BinarySizeGet();
!     /// copies the data from the AtomData instance to the given buffer - if 
possible
!     /// returns the size of the data in octets (8bit - bytes)
      virtual long BinaryDataGet(void* pData, long nSizeOfBuffer);
  
      virtual CStream& Save(CStream& oStream);
      virtual CStream& Load(CStream& oStream);
!     /// resolves the old link-pointer (as stored) to the new instance-pointer 
(as needed) after "load()"
      virtual bool ResolveIDs(CODB& oDB);
  
--- 201,223 ----
      virtual timeval TimeStampGet();
  
!     /**
!      * Get the binary Size.
!      * @return the size of the encapsulated data in octets (8bit - bytes).
!      */
      virtual long BinarySizeGet();
!     
!     /**
!      * Copies the data from the AtomData instance to the given buffer - if 
possible.
!      * @return the size of the data in octets (8bit - bytes).
!      */
      virtual long BinaryDataGet(void* pData, long nSizeOfBuffer);
  
      virtual CStream& Save(CStream& oStream);
      virtual CStream& Load(CStream& oStream);
!     
!     /**
!      * resolves the old link-pointer (as stored) to the new instance-pointer 
(as needed) after "load()".
!      * @return success? TODO.
!      */
      virtual bool ResolveIDs(CODB& oDB);
  
***************
*** 130,142 ****
      virtual const string& SuffixGet() const;
  
!     /// Prepair and return the data in a user friendly text format
      virtual string UIFormat();
  
!     /// set user sign
      bool UserSignSet(long nSign);
!     /// get user sign
      long UserSignGet();
  
!     /// Link atoms per rope (return value is an error code)
      virtual       long      RopeLinkAdd   (CRope* poRope, CAtom* poAtomNext);
      virtual       long      RopeLinkRemove(CRope* poRope);
--- 239,266 ----
      virtual const string& SuffixGet() const;
  
!     /**
!      * Prepair and return the data in a user friendly text format.
!      * @return the data in a user friendly text format.
!      */
      virtual string UIFormat();
  
!     /**
!      * set user sign
!      * @param nSign a user-defined sign.
!      * @return success? TODO.
!      */
      bool UserSignSet(long nSign);
!     
!     /**
!      * get user sign
!      * @return the previously set user-sign of the atom.
!      */
      long UserSignGet();
  
!     /**
!      * Link atoms per rope (return value is an error code).
!      * @param poRope the rope the atom shall become part of.
!      * @param poAtomNext the neighbour atom.
!      */
      virtual       long      RopeLinkAdd   (CRope* poRope, CAtom* poAtomNext);
      virtual       long      RopeLinkRemove(CRope* poRope);
***************
*** 145,153 ****
  
    protected:
      CMapRope m_moRope;
  
    // non virtual members
    protected:
!     /// called from the constructor(s) to initialize all member variable
      void InitBasics(bool bADO);
  
--- 269,283 ----
  
    protected:
+     /**
+      * The ropes the atom is part of.
+      */
      CMapRope m_moRope;
  
    // non virtual members
    protected:
!     /**
!      * called from the constructor(s) to initialize all member variable.
!      * @param bAtom unknown TODO.
!      */
      void InitBasics(bool bADO);
  

Index: atomdata.h
===================================================================
RCS file: /cvsroot/moss/moss/odb/include/atomdata.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** atomdata.h  14 Mar 2002 23:08:13 -0000      1.1.1.1
--- atomdata.h  12 Dec 2002 10:46:31 -0000      1.2
***************
*** 31,34 ****
--- 31,39 ----
  #define __ATOMDATA_H
  
+ /**
+  * @file
+  * Atomdata.
+  */
+ 
  #if _MSC_VER >= 1000
  #pragma once
***************
*** 37,50 ****
  #include "stream.h"
  
! #ifdef WIN32
!   #include "winsock.h"
!   #else
!   #include <sys/time.h>
!   #endif // WIN32
  
  // for sprintf(..) in method "UIFormat(..)"
  #include "stdio.h"
! 
! namespace odb {
  
  #define DT_NONE     0x0000
--- 42,55 ----
  #include "stream.h"
  
! #ifdef WIN32
!   #include "winsock.h"
!   #else
!   #include <sys/time.h>
!   #endif // WIN32
  
  // for sprintf(..) in method "UIFormat(..)"
  #include "stdio.h"
! 
! namespace odb {
  
  #define DT_NONE     0x0000
***************
*** 58,61 ****
--- 63,69 ----
  
  
+ /**
+  * The AtomData Class.
+  */
  class CAtomData
    {
***************
*** 67,74 ****
--- 75,99 ----
  
    public:
+                 
+             /**
+              * Constructor.
+              */
                   CAtomData();
+                
+             /**
+              * Copyconstructor.
+              * @param src the atomdata to be copied from.
+              */
                   CAtomData(CAtomData& src);
+                
+             /**
+              * Destructor.
+              */
          virtual ~CAtomData();
  
+             /**
+              * Get the Type of AtomData.
+              * @return the Type.
+              */
      virtual long Type() { return DT_NONE; }
  
***************
*** 85,90 ****
      virtual bool    TimeStampUpdate();
  
!     // copies the data to the given buffer - if possible
!     // returns the size of the data in octets (8bit - bytes)
        virtual long BinaryDataGet(void* pData, long nSizeOfBuffer);
      virtual long BinarySizeGet();
--- 110,117 ----
      virtual bool    TimeStampUpdate();
  
!     /**
!      * copies the data to the given buffer - if possible.
!      * @return the size of the data in octets (8bit - bytes).
!      */
        virtual long BinaryDataGet(void* pData, long nSizeOfBuffer);
      virtual long BinarySizeGet();
***************
*** 94,103 ****
  
    protected:
!     /// called from the constructor(s) to initialize all member variable
      void InitBasics();
  
    };
! 
! } // namespace odb
  
  #endif // __ATOMDATA_H
--- 121,132 ----
  
    protected:
!     /**
!      * called from the constructor(s) to initialize all member variable.
!      */
      void InitBasics();
  
    };
! 
! } // namespace odb
  
  #endif // __ATOMDATA_H

Index: atomdata3dpoint.h
===================================================================
RCS file: /cvsroot/moss/moss/odb/include/atomdata3dpoint.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** atomdata3dpoint.h   14 Mar 2002 23:08:14 -0000      1.1.1.1
--- atomdata3dpoint.h   12 Dec 2002 10:46:31 -0000      1.2
***************
*** 31,34 ****
--- 31,39 ----
  #define __ATOMDATA_3D_POINT_H
  
+ /**
+  * @file
+  * AtomData 3D Point.
+  */
+ 
  #if _MSC_VER >= 1000
  #pragma once
***************
*** 36,44 ****
  
  #include "atomdata.h"
! 
! namespace odb {
  
  // data
! typedef
    struct tagG3DPOINT
      {
--- 41,49 ----
  
  #include "atomdata.h"
! 
! namespace odb {
  
  // data
! typedef
    struct tagG3DPOINT
      {
***************
*** 46,49 ****
--- 51,57 ----
      } G3DPOINT;
  
+ /**
+  * The 3D-Point AtomData.
+  */
  class CAtomData3DPoint : public CAtomData
    {
***************
*** 53,60 ****
--- 61,92 ----
  
    public:
+           /**
+            * Constructor.
+            */
               CAtomData3DPoint();
+ 
+           /**
+            * Constructor.
+            * @param rst3DPoint coordinates the atom shall represent.
+            */
               CAtomData3DPoint(G3DPOINT &rst3DPoint);
+ 
+           /**
+            * Constructor.
+            * @param dX X-coordinate the atom shall represent.
+            * @param dY Y-coordinate the atom shall represent.
+            * @param dZ Z-coordinate the atom shall represent.
+            */
               CAtomData3DPoint(double dX, double dY, double dZ);
+ 
+           /**
+            * Copyconstructor.
+            * @param src the other atom to be copied from.
+            */
               CAtomData3DPoint(CAtomData3DPoint& src);
+ 
+           /**
+            * Destructor.
+            */
      virtual ~CAtomData3DPoint();
  
***************
*** 77,88 ****
  
    protected:
!     /// called from the constructor(s) to initialize all member variable
      void InitBasics();
  
    protected:
      G3DPOINT m_Data;
!   }; // class CAtomData3DPoint : public inherited
! 
! } // namespace odb
  
  #endif // __ATOMDATA_3D_POINT_H
--- 109,122 ----
  
    protected:
!     /**
!      * called from the constructor(s) to initialize all member variable.
!      */
      void InitBasics();
  
    protected:
      G3DPOINT m_Data;
!   }; // class CAtomData3DPoint : public inherited
! 
! } // namespace odb
  
  #endif // __ATOMDATA_3D_POINT_H

Index: atomdatabinary.h
===================================================================
RCS file: /cvsroot/moss/moss/odb/include/atomdatabinary.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** atomdatabinary.h    14 Mar 2002 23:08:14 -0000      1.1.1.1
--- atomdatabinary.h    12 Dec 2002 10:46:31 -0000      1.2
***************
*** 31,34 ****
--- 31,39 ----
  #define __ATOMDATA_BINARY_H
  
+ /**
+  * @file
+  * Binary Atomdata.
+  */
+ 
  #if _MSC_VER > 1000
  #pragma once
***************
*** 36,42 ****
  
  #include "atomdata.h"
- 
- namespace odb {
  
  class CAtomDataBinary : public CAtomData
    {
--- 41,50 ----
  
  #include "atomdata.h"
  
+ namespace odb {
+ 
+ /**
+  * The Binary AtomData.
+  */
  class CAtomDataBinary : public CAtomData
    {
***************
*** 46,51 ****
--- 54,72 ----
  
    public:
+           /** 
+            * Constructor.
+            */
               CAtomDataBinary();
+ 
+           /**
+            * Constructor.
+            * @param pData the source of the binary data.
+            * @param nSizeInBytes number of bytes to be copied.
+            */
               CAtomDataBinary(void* pData, long& nSizeInBytes);
+ 
+           /**
+            * Destructor.
+            */
      virtual ~CAtomDataBinary();
  
***************
*** 66,70 ****
  
    protected:
!     /// called from the constructor(s) to initialize all member variable
      void InitBasics();
      bool DataSet(void* pData, long& nSizeInBytes);
--- 87,93 ----
  
    protected:
!     /**
!      * called from the constructor(s) to initialize all member variable.
!      */
      void InitBasics();
      bool DataSet(void* pData, long& nSizeInBytes);
***************
*** 72,81 ****
  
    protected:
!         unsigned char*  m_Data;  // binary data
!     long            m_nSize; // size of m_Data
  
    }; // class CAtomDataBinary : public CAtomData
! 
! } // namespace odb
  
  #endif // __ATOMDATA_BINARY_H
--- 95,104 ----
  
    protected:
!         unsigned char*  m_Data;  /**< binary data */
!       long            m_nSize; /**< size of m_Data */
  
    }; // class CAtomDataBinary : public CAtomData
! 
! } // namespace odb
  
  #endif // __ATOMDATA_BINARY_H

Index: atomdatafile.h
===================================================================
RCS file: /cvsroot/moss/moss/odb/include/atomdatafile.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** atomdatafile.h      14 Mar 2002 23:08:14 -0000      1.1.1.1
--- atomdatafile.h      12 Dec 2002 10:46:31 -0000      1.2
***************
*** 31,34 ****
--- 31,38 ----
  #define __ATOMDATA_FILE_H
  
+ /**
+  * @file
+  * File-AtomData.
+  */
  #if _MSC_VER >= 1000
  #pragma once
***************
*** 37,42 ****
  #include "atomdata.h"
  
! namespace odb {
! 
  class CAtomDataFile : public CAtomData  
    {
--- 41,49 ----
  #include "atomdata.h"
  
! namespace odb {
! 
! /**
!  * The File-AtomData.
!  */
  class CAtomDataFile : public CAtomData  
    {
***************
*** 45,51 ****
--- 52,70 ----
  
    public:
+           /**
+            * Constructor.
+            */
               CAtomDataFile();
+ 
+           /**
+            * Copyconstructor.
+            * @param src the atom to be copied from.
+            */
               CAtomDataFile(CAtomDataFile& src);
  // ??        CAtomDataFile(const fstream& src);
+ 
+           /**
+            * Destructor.
+            */
      virtual ~CAtomDataFile();
  
***************
*** 66,83 ****
  
    protected:
!     /// called from the constructor(s) to initialize all member variable
      void InitBasics();
  
    protected:
!         unsigned char*  m_Data;           // binary data
!         string          m_sFileName;      // original file name
!         string          m_sFilePath;      // original file path
!     long            m_nFileSize;      // original file size
!     long            m_nSize;          // size of m_Data
!     time_t          m_tCreation;      // date of creation
!     time_t          m_tModification;  // date of last modification
    };
  
! } // namespace odb
! 
  #endif // __ATOMDATA_FILE_H
--- 85,104 ----
  
    protected:
!     /**
!      * called from the constructor(s) to initialize all member variable.
!      */
      void InitBasics();
  
    protected:
!       unsigned char*  m_Data;           /**< binary data */
!       string          m_sFileName;      /**< original file name */
!       string          m_sFilePath;      /**< original file path */
!     long            m_nFileSize;      /**< original file size */
!     long            m_nSize;          /**< size of m_Data */
!     time_t          m_tCreation;      /**< date of creation */
!     time_t          m_tModification;  /**< date of last modification */
    };
  
! } // namespace odb
! 
  #endif // __ATOMDATA_FILE_H

Index: atomdatafilelink.h
===================================================================
RCS file: /cvsroot/moss/moss/odb/include/atomdatafilelink.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** atomdatafilelink.h  14 Mar 2002 23:08:15 -0000      1.1.1.1
--- atomdatafilelink.h  12 Dec 2002 10:46:31 -0000      1.2
***************
*** 31,34 ****
--- 31,39 ----
  #define __ATOMDATA_FILELINK_H
  
+ /**
+  * @file
+  * FileLink AtomData.
+  */
+ 
  #if _MSC_VER >= 1000
  #pragma once
***************
*** 37,40 ****
--- 42,48 ----
  #include "atomdata.h"
  
+ /**
+  * The AtomData File-Link.
+  */
  class CAtomDataFileLink : public CAtomData  
    {
***************
*** 43,49 ****
--- 51,68 ----
  
    public:
+           /**
+            * Constructor.
+            */
               CAtomDataFileLink();
+           /**
+            * Copyconstructor.
+            * @param src the atom to be copied from.
+            */
               CAtomDataFileLink(CAtomDataFileLink& src);
  // ??        CAtomDataFileLink(const fstream& src);
+ 
+           /**
+            * Destructor.
+            */
      virtual ~CAtomDataFileLink();
  
***************
*** 64,72 ****
  
    protected:
!     /// called from the constructor(s) to initialize all member variable
      void InitBasics();
  
    protected:
!         string  m_Data;           // filename
      long    m_nSize;
      time_t  m_tCreation;
--- 83,93 ----
  
    protected:
!     /**
!      * called from the constructor(s) to initialize all member variable.
!      */
      void InitBasics();
  
    protected:
!     string  m_Data;           /**< filename */
      long    m_nSize;
      time_t  m_tCreation;

Index: atomdatainteger.h
===================================================================
RCS file: /cvsroot/moss/moss/odb/include/atomdatainteger.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** atomdatainteger.h   14 Mar 2002 23:08:15 -0000      1.1.1.1
--- atomdatainteger.h   12 Dec 2002 10:46:31 -0000      1.2
***************
*** 31,42 ****
  #define __ATOMDATA_INTEGER_H
  
  #if _MSC_VER >= 1000
  #pragma once
  #endif // _MSC_VER >= 1000
  
! #include "atomdata.h"
! 
  namespace odb {
  
  class CAtomDataInteger : public CAtomData
    {
--- 31,51 ----
  #define __ATOMDATA_INTEGER_H
  
+ 
+ /**
+  * @file 
+  * AtomData Integer.
+  */
+ 
  #if _MSC_VER >= 1000
  #pragma once
  #endif // _MSC_VER >= 1000
  
! #include "atomdata.h"
! 
  namespace odb {
  
+ /**
+  * The Integer Atom-Data.
+  */
  class CAtomDataInteger : public CAtomData
    {
***************
*** 45,51 ****
--- 54,77 ----
  
    public:
+           /** 
+            * Constructor.
+            */
               CAtomDataInteger();
+ 
+           /** 
+            * Copyconstructor.
+            * @param src the atom to be copied from.
+            */
               CAtomDataInteger(CAtomDataInteger& src);
+ 
+           /**
+            * Constructor.
+            * @param src the integer the atom shall represent.
+            */
               CAtomDataInteger(long src);
+ 
+           /**
+            * Destructor.
+            */
      virtual ~CAtomDataInteger();
  
***************
*** 66,76 ****
  
    protected:
!     /// called from the constructor(s) to initialize all member variable
      void InitBasics();
  
    protected:
          long m_Data;
!   };
! 
  } // namespace odb
  
--- 92,104 ----
  
    protected:
!     /**
!      * called from the constructor(s) to initialize all member variable.
!      */
      void InitBasics();
  
    protected:
          long m_Data;
!   };
! 
  } // namespace odb
  

Index: atomdatareal.h
===================================================================
RCS file: /cvsroot/moss/moss/odb/include/atomdatareal.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** atomdatareal.h      14 Mar 2002 23:08:16 -0000      1.1.1.1
--- atomdatareal.h      12 Dec 2002 10:46:31 -0000      1.2
***************
*** 31,40 ****
  #define __ATOMDATA_REAL_H
  
  #if _MSC_VER >= 1000
  #pragma once
  #endif // _MSC_VER >= 1000
  
! #include "atomdata.h"
! 
  namespace odb {
  
--- 31,45 ----
  #define __ATOMDATA_REAL_H
  
+ /**
+  * @file 
+  * Atomdata Real TODO.
+  */
+ 
  #if _MSC_VER >= 1000
  #pragma once
  #endif // _MSC_VER >= 1000
  
! #include "atomdata.h"
! 
  namespace odb {
  
***************
*** 71,76 ****
    protected:
          double m_Data;
!   };
! 
  } // namespace odb
  
--- 76,81 ----
    protected:
          double m_Data;
!   };
! 
  } // namespace odb
  

Index: atomdatastring.h
===================================================================
RCS file: /cvsroot/moss/moss/odb/include/atomdatastring.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** atomdatastring.h    14 Mar 2002 23:08:16 -0000      1.1.1.1
--- atomdatastring.h    12 Dec 2002 10:46:31 -0000      1.2
***************
*** 31,40 ****
  #define __ATOMDATA_STRING_H
  
  #if _MSC_VER >= 1000
  #pragma once
  #endif // _MSC_VER >= 1000
  
! #include "atomdata.h"
! 
  namespace odb {
  
--- 31,45 ----
  #define __ATOMDATA_STRING_H
  
+ /**
+  * @file
+  * AtomData String TODO.
+  */
+ 
  #if _MSC_VER >= 1000
  #pragma once
  #endif // _MSC_VER >= 1000
  
! #include "atomdata.h"
! 
  namespace odb {
  
***************
*** 71,76 ****
    protected:
          string m_Data;
!   };
! 
  } // namespace odb
  
--- 76,81 ----
    protected:
          string m_Data;
!   };
! 
  } // namespace odb
  

Index: class.h
===================================================================
RCS file: /cvsroot/moss/moss/odb/include/class.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** class.h     14 Mar 2002 23:08:16 -0000      1.1.1.1
--- class.h     12 Dec 2002 10:46:31 -0000      1.2
***************
*** 1,92 ****
! /***************************************************************************
!                           class.h  -  description
!                              -------------------
!     begin                : Fri Mar 3 2000
!     copyright            : (C) 1993..2000 by Manfred Morgner
!     email                : address@hidden
!  ***************************************************************************/
! 
! /***************************************************************************
!  *                                                                         *
!  *   This program is free software; you can redistribute it and/or modify  *
!  *   it under the terms of the GNU General Public License as published by  *
!  *   the Free Software Foundation; either version 2 of the License, or     *
!  *   (at your option) any later version.                                   *
!  *                                                                         *
!  *   This program is distributed in the hope that it will be useful,       *
!  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
!  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
!  *   GNU General Public License for more details.                          *
!  *                                                                         *
!  *   You should have received a copy of the GNU General Public License     *
!  *   along with this program; if not, write to the                         *
!  *                                                                         *
!  *   Free Software Foundation, Inc.,                                       *
!  *   59 Temple Place Suite 330,                                            *
!  *   Boston, MA  02111-1307, USA.                                          *
!  *                                                                         *
!  ***************************************************************************/
! 
! #ifndef __CLASS_H
! #define __CLASS_H
! 
! #if _MSC_VER >= 1000
! #pragma once
! #endif // _MSC_VER >= 1000
! 
! #include "root.h"
! 
! namespace odb {
! 
! class CObject;
! 
! class CClass : public CRoot  
!   {
!     DECLARE_RTTI
! 
!   private:
!     typedef CRoot inherited;
! 
!   protected:
!     CObject*  m_poOMAL; // object master atom list (master object)
! 
!              CClass(CClass& src);
!   public:
!              CClass();
!              CClass(long lid);
!              CClass(const string& sName, CObject* poOMAL = 0);
!     virtual ~CClass();
! 
!             CClass* operator = (const CClass* src);
!     virtual CRoot* Copy();
! 
!     virtual CStream& Save(CStream& oStream);
!     virtual CStream& Load(CStream& oStream);
!     /// resolves the old link-pointer (as stored) to the new instance-pointer 
(as needed) after "load()"
!     virtual bool        ResolveIDs(CODB& oDB);
! 
!     virtual CObject* OmalGet() const ;
!     virtual bool        OmalSet( const CObject* poOMAL, bool bOverwrite = 
false );
! 
!             /// inserts or replaces the OMAL for this class
!             CObject* operator = (const CObject* poOMAL);
!             /// returns the OMAL for this class
!                         operator CObject*() const;
! 
!     /// sets the "parent class" for this class
!     CClass* ClassSet(const CClass* poClass);
!     /// returns the "parent class" of this class
!     CClass* ClassGet() const;
! 
!   protected:
!     /// called from the constructor(s) to initialize all member variable
!     void InitBasics();
! 
!   protected:
!     /// the "parent class"
!     CClass* m_poClass;
!   };
! 
!   } // na,espace odb
! 
! #endif // __ODB_CLASS_H
--- 1,141 ----
! /***************************************************************************
!                           class.h  -  description
!                              -------------------
!     begin                : Fri Mar 3 2000
!     copyright            : (C) 1993..2000 by Manfred Morgner
!     email                : address@hidden
!  ***************************************************************************/
! 
! /***************************************************************************
!  *                                                                         *
!  *   This program is free software; you can redistribute it and/or modify  *
!  *   it under the terms of the GNU General Public License as published by  *
!  *   the Free Software Foundation; either version 2 of the License, or     *
!  *   (at your option) any later version.                                   *
!  *                                                                         *
!  *   This program is distributed in the hope that it will be useful,       *
!  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
!  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
!  *   GNU General Public License for more details.                          *
!  *                                                                         *
!  *   You should have received a copy of the GNU General Public License     *
!  *   along with this program; if not, write to the                         *
!  *                                                                         *
!  *   Free Software Foundation, Inc.,                                       *
!  *   59 Temple Place Suite 330,                                            *
!  *   Boston, MA  02111-1307, USA.                                          *
!  *                                                                         *
!  ***************************************************************************/
! 
! #ifndef __CLASS_H
! #define __CLASS_H
! 
! /**
!  * @file
!  * The Class.
!  */
! 
! #if _MSC_VER >= 1000
! #pragma once
! #endif // _MSC_VER >= 1000
! 
! #include "root.h"
! 
! namespace odb {
! 
! class CObject;
! 
! /**
!  * The Class.
!  */
! class CClass : public CRoot  
!   {
!     DECLARE_RTTI
! 
!   private:
!     typedef CRoot inherited;
! 
!   protected:
!     CObject*  m_poOMAL; /**< object master atom list (master object). */
! 
!           /**
!            * Copyconstructor.
!            * @param src the class to be copied from.
!            */
!              CClass(CClass& src);
!   public:
!           /**
!            * Constructor.
!            */
!              CClass();
! 
!           /**
!            * Constructor.
!            * @param lid an intended id for the class.
!            */
!              CClass(long lid);
! 
!           /**
!            * Constructor.
!            * @param the class' name.
!            * @param poOMAL a pointer to the object master atom list.
!            */
!              CClass(const string& sName, CObject* poOMAL = 0);
! 
!           /** 
!            * Destructor.
!            */
!     virtual ~CClass();
! 
!             CClass* operator = (const CClass* src);
!     virtual CRoot* Copy();
! 
!     virtual CStream& Save(CStream& oStream);
!     virtual CStream& Load(CStream& oStream);
!     /**
!      * resolves the old link-pointer (as stored) to the new instance-pointer 
(as needed) after "load()".
!      * @param oDB the database where to do that.
!      */
!     virtual bool        ResolveIDs(CODB& oDB);
! 
!     virtual CObject* OmalGet() const ;
!     virtual bool        OmalSet( const CObject* poOMAL, bool bOverwrite = 
false );
! 
!             /**
!              * inserts or replaces the OMAL for this class.
!              */
!             CObject* operator = (const CObject* poOMAL);
!             /**
!              * returns the OMAL for this class.
!              */
!                      operator CObject*() const;
! 
!     /**
!      * sets the "parent class" for this class..
!      * @param poClass the parent class.
!      * @return TODO.
!      */
!     CClass* ClassSet(const CClass* poClass);
!     
!     /**
!      * Get the parent-class.
!      * @return the "parent class" of this class.
!      */
!     CClass* ClassGet() const;
! 
!   protected:
!     /**
!      * called from the constructor(s) to initialize all member variable.
!      */
!     void InitBasics();
! 
!   protected:
!     /**
!      * the "parent class".
!      */
!     CClass* m_poClass;
!   };
! 
!   } // namespace odb
! 
! #endif // __ODB_CLASS_H

Index: generic.h
===================================================================
RCS file: /cvsroot/moss/moss/odb/include/generic.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** generic.h   14 Mar 2002 23:08:17 -0000      1.1.1.1
--- generic.h   12 Dec 2002 10:46:31 -0000      1.2
***************
*** 42,48 ****
  #include <iostream>
  #include <fstream>
! 
! namespace odb
!   {
  
    #define ODB_SUCCESS           0L
--- 42,48 ----
  #include <iostream>
  #include <fstream>
! 
! namespace odb
!   {
  
    #define ODB_SUCCESS           0L
***************
*** 50,67 ****
  
    #define ODB_ROPE_RECURSION   -100L
!   #define ODB_UNKNOWN_INSTANCE -101L
! 
    } // namespace odb
  
! #ifdef WIN32
!   #include "winsock.h"
!   extern "C" int gettimeofday( struct timeval*, struct timezone*);
!   #else
!   #include <sys/time.h>
    #endif // WIN32
  bool operator > (const timeval& t1, const timeval& t2);
  
  using namespace std;
! using namespace odb;
  
  #endif // __GENERIC_H
--- 50,67 ----
  
    #define ODB_ROPE_RECURSION   -100L
!   #define ODB_UNKNOWN_INSTANCE -101L
! 
    } // namespace odb
  
! #ifdef WIN32
!   #include "winsock.h"
!   extern "C" int gettimeofday( struct timeval*, struct timezone*);
!   #else
!   #include <sys/time.h>
    #endif // WIN32
  bool operator > (const timeval& t1, const timeval& t2);
  
  using namespace std;
! using namespace odb;
  
  #endif // __GENERIC_H

Index: keyname.h
===================================================================
RCS file: /cvsroot/moss/moss/odb/include/keyname.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** keyname.h   14 Mar 2002 23:08:17 -0000      1.1.1.1
--- keyname.h   12 Dec 2002 10:46:31 -0000      1.2
***************
*** 31,43 ****
  #define __KEY_NAME_H
  
! /**A class, that provides an 2D-Index from "Names" of whatever to instances 
of whatever.
!   address@hidden Manfred Morgner
!   */
  
  #include "generic.h"
  
  // STL
! #include <vector>
! 
  namespace odb {
  
--- 31,44 ----
  #define __KEY_NAME_H
  
! /**
!  * @file
!  * KeyName.
!  */
  
  #include "generic.h"
  
  // STL
! #include <vector>
! 
  namespace odb {
  
***************
*** 46,49 ****
--- 47,53 ----
  typedef vector<CRoot*> CVectorRoot;
  
+ /**
+  * KeyName Class. A class, that provides an 2D-Index from "Names" of whatever 
to instances of whatever.
+   */
  class CKeyName : public CVectorRoot
    {
***************
*** 52,58 ****
--- 56,74 ----
  
    protected:
+     /** 
+      * Constructor.
+      */
       CKeyName() {};
    public:
+ 
+      /**
+       * Constructor.
+       * @param sName the name.
+       */
       CKeyName(const string& sName);
+ 
+      /**
+       * Destructor.
+       */
      ~CKeyName();
  
***************
*** 75,79 ****
  typedef set<CKeyName*, KeyName_less> CKeyNameIndex;
  
!   } // namespace odb
! 
  #endif // __KEY_NAME_H
--- 91,95 ----
  typedef set<CKeyName*, KeyName_less> CKeyNameIndex;
  
!   } // namespace odb
! 
  #endif // __KEY_NAME_H

Index: object.h
===================================================================
RCS file: /cvsroot/moss/moss/odb/include/object.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** object.h    14 Mar 2002 23:08:18 -0000      1.1.1.1
--- object.h    12 Dec 2002 10:46:31 -0000      1.2
***************
*** 31,34 ****
--- 31,39 ----
  #define __OBJECT_H
  
+ /**
+  * @file 
+  * Object.
+  */
+ 
  #if _MSC_VER >= 1000
  #pragma once
***************
*** 39,44 ****
  #include "atom.h"
  #include "reason.h"
! 
! namespace odb {
  
  
--- 44,49 ----
  #include "atom.h"
  #include "reason.h"
! 
! namespace odb {
  
  
***************
*** 48,51 ****
--- 53,60 ----
  typedef pair<CObject*, long>         CPairParent;
  
+ 
+ /**
+  * The Object.
+  */
  class CObject : public CRoot
    {
***************
*** 58,145 ****
      bool m_bOmal;
  
!     CClass*   m_poClass;    // the class of the object
!     CObject*  m_poOmal ;    // the "object master atom list"
!     CMapChildren m_moChildren; // the objected they where referenced to
!     CVectorAtom  m_aoAtoms;    // the data atoms
  
               CObject(CObject& src);
    public:
               CObject(bool bOmal = false);
               CObject(long lid, bool bOmal = false);
               CObject(const CClass* poClass, bool bOmal = false);
  
               CObject(const string& sName, bool bOmal = false);
               CObject(const string& sName, const CClass* poClass, bool bOmal = 
false);
  
               CObject(const CObject* src, bool bOmal = false);
      virtual ~CObject();
  
!     /// assignes the object data from the given source object
      const CObject* operator = (const CObject* src);
  
!     /// create a copy of the object
      virtual CRoot* Copy();
  
!     /// assignes the OMAL given in "src"
      virtual const CObject* OmalSet(const CObject* poOMAL);
  
!     /// assignes the object data from the source object (also used in 
OmalSet())
      const CClass* operator = (const CClass* src);
  
!     /// adds an atom to the atomslist
      const CAtom* operator += (CAtom* src);
!     /// removes an atom from the atomlist
      const CAtom* operator -= (CAtom* src);
  
!     /// strores the object instance data from the stream
      virtual CStream& Save(CStream& oStream);
!     /// loads the object instance data from the stream
      virtual CStream& Load(CStream& oStream);
!     /// resolves the old link-pointer (as stored) to the new instance-pointer 
(as needed) after "load()"
      virtual bool ResolveIDs(CODB& oDB);
  
!     /// creates a parent link to an object instance
      virtual bool Link       (const CObject* poChildObject, const CReason* 
poReason);
!     /// removes a parent link to an object instance
      virtual bool LinkRemove (const CObject* poChildObject, const CReason* 
poReason);
  
!     /// adds an atom to the atomslist
      virtual const CAtom* CObject::AtomAdd(CAtom* poAtom, long lOrdinal = -1);
!     /// removes an atom from the atomlist
      virtual const CAtom* AtomRemove(CAtom* poAtom);
  
!     /// returns the Atom-Vector
      virtual const CVectorAtom& AtomsGet() const;
!     /// returns the Atom by index, CAN RETURN "NULL" !
      virtual CAtom*  AtomGet(long nIndex);
!     /// returns the Atom by user-sign
      virtual CVectorAtom AtomGetBySign(long nSign, long nSignMask = 
0xFFFFFFFFL );
!     /// returns a list of Atoms found by Name
      virtual CVectorAtom AtomGet(const string& sName, bool bPartial = false);
!     /// returns the amount of atoms in the object
      virtual long AtomCountGet() const;
  
!     /// returns the Child-Vector
      virtual const CMapChildren& ChildrenGet() const;
!     /// returns the Child by index, CAN RETURN "NULL" !
      virtual CObject*  ChildGet(long nIndex);
!     /// returns the Child-Pair by index. PAIR CAN CONTAIN "0"!
      virtual CPairChild ChildPairGet(long nIndex);
!     /// returns the amount of Childs in the object
      virtual long ChildCountGet() const;
  
  
!     /// returns the Parent-Vector
      virtual const CMapReferencing& ParentsGet() const;
!     /// returns the Parent by index, CAN RETURN "NULL" !
      virtual CObject* ParentGet(long nIndex);
!     /// returns the Parent-Pair by index. PAIR CAN CONTAIN "0"!
      virtual CPairParent ParentPairGet(long nIndex);
!     /// returns the amount of Parents in the object
      virtual long ParentCountGet() const;
  
!     /// sets the "logical class" for this object
      CClass* ClassSet(const CClass* poClass);
!     /// returns the "logical class" of this object
      CClass* ClassGet() const;
  
--- 67,278 ----
      bool m_bOmal;
  
!     CClass*   m_poClass;    /**< the class of the object. */
!     CObject*  m_poOmal ;    /**< the "object master atom list". */
!     CMapChildren m_moChildren; /**< the objected they where referenced to. */
!     CVectorAtom  m_aoAtoms;    /**< the data atoms. */
! 
  
+           /**
+            * Copyconstructor.
+            */
               CObject(CObject& src);
    public:
+           /**
+            * Constructor.
+            * @param bOmal is object master atom list?. 
+            */
               CObject(bool bOmal = false);
+           /**
+            * Constructor.
+            * @param lid the intended object's id.
+            * @param bOmal object is an object master atom list.
+            */
               CObject(long lid, bool bOmal = false);
+ 
+           /**
+            * Constructor.
+            * @param poClass the class the object shall 'inherit' from.
+            * @param bOmal object is an object master atom list.
+            */ 
               CObject(const CClass* poClass, bool bOmal = false);
  
+           /**
+            * Constructor.
+            * @param sName the object's name.
+            * @param bOmal object is an object master atom list.
+            */ 
               CObject(const string& sName, bool bOmal = false);
+ 
+           /**
+            * Constructor.
+            * @param sName the object's name.
+            * @param poClass the class the object shall 'inherit' from.
+            * @param bOmal object is an object master atom list.
+            */ 
               CObject(const string& sName, const CClass* poClass, bool bOmal = 
false);
  
+           /**
+            * Copyconstructor.
+            * @param src the object to copy from.
+            * @param bOmal object is an object master atom list.
+            */
               CObject(const CObject* src, bool bOmal = false);
+ 
+           /**
+            * Destructor.
+            */
      virtual ~CObject();
  
!     /**
!      * assignes the object data from the given source object.
!      * @return TODO.
!      */
      const CObject* operator = (const CObject* src);
  
!     /**
!      * create a copy of the object.
!      * @return TODO.
!      */
      virtual CRoot* Copy();
  
!     /**
!      * assignes the OMAL given.
!      * @param poOMAL get the OMAL from this object.
!      * @return TODO.
!      */
      virtual const CObject* OmalSet(const CObject* poOMAL);
  
!     /**
!      * assignes the object data from the source object (also used in 
OmalSet()).
!      */
      const CClass* operator = (const CClass* src);
  
!     /**
!      * adds an atom to the atomslist.
!      */
      const CAtom* operator += (CAtom* src);
!     /**
!      * removes an atom from the atomlist.
!      */
      const CAtom* operator -= (CAtom* src);
  
!     /**
!      * strores the object instance data from the stream.
!      */
      virtual CStream& Save(CStream& oStream);
!     /**
!      * loads the object instance data from the stream.
!      */
      virtual CStream& Load(CStream& oStream);
!     /**
!      * resolves the old link-pointer (as stored) to the new instance-pointer 
(as needed) after "load()".
!      */
      virtual bool ResolveIDs(CODB& oDB);
  
!     /**
!      * creates a parent link to an object instance.
!      * @param poChildObject the child object to link to.
!      * @param poReason the reason for the connection.
!      * @return success? TODO.
!      */
      virtual bool Link       (const CObject* poChildObject, const CReason* 
poReason);
!     /**
!      * removes a parent link to an object instance.
!      * @param poChildObject the child object to which the link shall be 
removed.
!      * @param poReason the reason of the link to remove (there can be 
multiple).
!      * @return success? TODO.
!      */
      virtual bool LinkRemove (const CObject* poChildObject, const CReason* 
poReason);
  
!     /**
!      * adds an atom to the atomslist.
!      * @param poAtom the atom to be added.
!      * @param lOrdinal TODO.
!      * @return the added atom.
!      */
      virtual const CAtom* CObject::AtomAdd(CAtom* poAtom, long lOrdinal = -1);
!     /**
!      * removes an atom from the atomlist.
!      * @param poAtom the atom to be removed.
!      * @return the removed atom.
!      */
      virtual const CAtom* AtomRemove(CAtom* poAtom);
  
!     /**
!      * Get the Atom-Vector.
!      * @return the object's atom-vector.
!      */
      virtual const CVectorAtom& AtomsGet() const;
!     /**
!      * Get the Atom by Index.
!      * @return the Atom by index, CAN RETURN "NULL".
!      */
      virtual CAtom*  AtomGet(long nIndex);
!     /**
!      * Get the Atoms by user-sign.
!      * @param nSigh the user-sign the atom looked for is marked with.
!      * @param nSignMask the mask.
!      * @return the Atoms marked with the user-sign.
!      */
      virtual CVectorAtom AtomGetBySign(long nSign, long nSignMask = 
0xFFFFFFFFL );
!     /**
!      * Get a list of Atoms found by Name.
!      * @param sName the name to search the atoms.
!      * @param bPartial TODO.
!      * @return a list of Atoms found using sName.
!      */
      virtual CVectorAtom AtomGet(const string& sName, bool bPartial = false);
!     /**
!      * Get the amount of atoms in the object.
!      * @return the number of atoms.
!      */
      virtual long AtomCountGet() const;
  
!     /**
!      * returns the Child-Vector
!      */
      virtual const CMapChildren& ChildrenGet() const;
!     /**
!      * returns the Child by index, CAN RETURN "NULL".
!      * @param nIndex the index of the child.
!      */
      virtual CObject*  ChildGet(long nIndex);
!     /**
!      * returns the Child-Pair by index. PAIR CAN CONTAIN "0".
!      * @param nIndex the index of the pair.
!      */
      virtual CPairChild ChildPairGet(long nIndex);
!     /**
!      * returns the amount of Childs in the object.
!      */
      virtual long ChildCountGet() const;
  
  
!     /**
!      * returns the Parent-Vector.
!      */
      virtual const CMapReferencing& ParentsGet() const;
!     /**
!      * returns the Parent by index, CAN RETURN "NULL".
!      * @param the index of the parent.
!      */
      virtual CObject* ParentGet(long nIndex);
!     /**
!      * returns the Parent-Pair by index. PAIR CAN CONTAIN "0".
!      * @param nIndex the index of the parent-pair.
!      */
      virtual CPairParent ParentPairGet(long nIndex);
!     /**
!      * returns the amount of Parents in the object.
!      */
      virtual long ParentCountGet() const;
  
!     /**
!      * sets the "logical class" for this object.
!      */
      CClass* ClassSet(const CClass* poClass);
!     /**
!      * returns the "logical class" of this object.
!      */
      CClass* ClassGet() const;
  
***************
*** 147,155 ****
  
    protected:
!     /// called from the constructor(s) to initialize all member variable
      void InitBasics(bool bOmal);
    };
! 
! } // namespace odb
  
  #endif // __OBJECT_H
--- 280,290 ----
  
    protected:
!     /**
!      * called from the constructor(s) to initialize all member variable..
!      */
      void InitBasics(bool bOmal);
    };
! 
! } // namespace odb
  
  #endif // __OBJECT_H

Index: odb.h
===================================================================
RCS file: /cvsroot/moss/moss/odb/include/odb.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** odb.h       14 Mar 2002 23:08:19 -0000      1.1.1.1
--- odb.h       12 Dec 2002 10:46:31 -0000      1.2
***************
*** 31,34 ****
--- 31,39 ----
  #define __ODB_H
  
+ /**
+  * @file
+  * ODB.
+  */
+ 
  #if _MSC_VER >= 1000
  #pragma once
***************
*** 44,55 ****
  #include "keyname.h"
  
! #ifdef WIN32
!   #include "winsock.h"
!   #else
!   #include <sys/time.h>
!   #endif // WIN32
! 
  namespace odb {
  
  class CODB : public CListRoot
    {
--- 49,64 ----
  #include "keyname.h"
  
! #ifdef WIN32
!   #include "winsock.h"
!   #else
!   #include <sys/time.h>
!   #endif // WIN32
! 
  namespace odb {
  
+ 
+ /**
+  * The Object Data Base.
+  */
  class CODB : public CListRoot
    {
***************
*** 235,240 ****
  
    }; // class CODB : public CListRoot
! 
! } // namespace odb
  
  #endif // __ODB_H
--- 244,249 ----
  
    }; // class CODB : public CListRoot
! 
! } // namespace odb
  
  #endif // __ODB_H

Index: reason.h
===================================================================
RCS file: /cvsroot/moss/moss/odb/include/reason.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** reason.h    14 Mar 2002 23:08:19 -0000      1.1.1.1
--- reason.h    12 Dec 2002 10:46:31 -0000      1.2
***************
*** 31,34 ****
--- 31,39 ----
  #define __REASON_H
  
+ /**
+  * @file 
+  * Reason.
+  */
+ 
  #if _MSC_VER >= 1000
  #pragma once
***************
*** 37,45 ****
  #include "root.h"
  #include "class.h"
! 
! namespace odb {
  
  class CObject;
  
  class CReason : public CRoot  
    {
--- 42,53 ----
  #include "root.h"
  #include "class.h"
! 
! namespace odb {
  
  class CObject;
  
+ /**
+  * The Reason.
+  */
  class CReason : public CRoot  
    {
***************
*** 78,83 ****
      void InitBasics();
    };
! 
!   } // namespace odb
  
  #endif // __REASON_H
--- 86,91 ----
      void InitBasics();
    };
! 
!   } // namespace odb
  
  #endif // __REASON_H

Index: root.h
===================================================================
RCS file: /cvsroot/moss/moss/odb/include/root.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** root.h      14 Mar 2002 23:08:20 -0000      1.1.1.1
--- root.h      12 Dec 2002 10:46:31 -0000      1.2
***************
*** 31,34 ****
--- 31,39 ----
  #define __ROOT_H
  
+ /**
+  * @file
+  * Root.
+  */
+ 
  #if _MSC_VER >= 1000
  #pragma once
***************
*** 38,51 ****
  #include "stream.h"
  
! #ifdef WIN32
!   #include <sys/timeb.h>
!   #else
!   #include <sys/time.h>
!   #endif // WIN32
  
! #include <vector>
  #include <set>
  #include <map>
! 
  namespace odb {
  
--- 43,56 ----
  #include "stream.h"
  
! #ifdef WIN32
!   #include <sys/timeb.h>
!   #else
!   #include <sys/time.h>
!   #endif // WIN32
  
! #include <vector>
  #include <set>
  #include <map>
! 
  namespace odb {
  
***************
*** 70,73 ****
--- 75,82 ----
  typedef vector<CAtom*>    CVectorAtom;
  
+ 
+ /**
+  * The mighty Root.
+  */
  class CRoot
    {
***************
*** 143,148 ****
      void InitBasics();
    };
! 
! } // namespace odb
  
  #endif // __ROOT_H
--- 152,157 ----
      void InitBasics();
    };
! 
! } // namespace odb
  
  #endif // __ROOT_H

Index: rope.h
===================================================================
RCS file: /cvsroot/moss/moss/odb/include/rope.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** rope.h      14 Mar 2002 23:08:20 -0000      1.1.1.1
--- rope.h      12 Dec 2002 10:46:31 -0000      1.2
***************
*** 1,69 ****
! /***************************************************************************
!                            rope.h  -  description
!                              -------------------
!     begin                : Sun Mar 19 2000
!     copyright            : (C) 1993..2000 by Manfred Morgner
!     email                : address@hidden
!  ***************************************************************************/
! 
! /***************************************************************************
!  *                                                                         *
!  *   This program is free software; you can redistribute it and/or modify  *
!  *   it under the terms of the GNU General Public License as published by  *
!  *   the Free Software Foundation; either version 2 of the License, or     *
!  *   (at your option) any later version.                                   *
!  *                                                                         *
!  *   This program is distributed in the hope that it will be useful,       *
!  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
!  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
!  *   GNU General Public License for more details.                          *
!  *                                                                         *
!  *   You should have received a copy of the GNU General Public License     *
!  *   along with this program; if not, write to the                         *
!  *                                                                         *
!  *   Free Software Foundation, Inc.,                                       *
!  *   59 Temple Place Suite 330,                                            *
!  *   Boston, MA  02111-1307, USA.                                          *
!  *                                                                         *
!  ***************************************************************************/
! 
! #ifndef __ROPE_H
! #define __ROPE_H
! 
! #if _MSC_VER > 1000
! #pragma once
! #endif // _MSC_VER > 1000
! 
! #include "root.h"
! 
! namespace odb {
! 
! class CAtom;
! 
! class CRope : public CRoot
!   {
!     DECLARE_RTTI
! 
!   private:
!     typedef CRoot inherited;
! 
!   protected:
!     CRope() {}; // forbidden
!   public:
!     CRope(long lid);
!     CRope(CAtom* poStartpoint, const string& sName = _T(""));
! 
!     CAtom* StartpointGet();
! 
!     CStream& Save(CStream& oStream);
!     CStream& Load(CStream& oStream);
!     bool     ResolveIDs(CODB& oDB);
! 
! 
!   protected:
!     CAtom* m_poStartpoint;
!   };
! 
! } // namespace odb
! 
! #endif // __ROPE_H
--- 1,77 ----
! /***************************************************************************
!                            rope.h  -  description
!                              -------------------
!     begin                : Sun Mar 19 2000
!     copyright            : (C) 1993..2000 by Manfred Morgner
!     email                : address@hidden
!  ***************************************************************************/
! 
! /***************************************************************************
!  *                                                                         *
!  *   This program is free software; you can redistribute it and/or modify  *
!  *   it under the terms of the GNU General Public License as published by  *
!  *   the Free Software Foundation; either version 2 of the License, or     *
!  *   (at your option) any later version.                                   *
!  *                                                                         *
!  *   This program is distributed in the hope that it will be useful,       *
!  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
!  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
!  *   GNU General Public License for more details.                          *
!  *                                                                         *
!  *   You should have received a copy of the GNU General Public License     *
!  *   along with this program; if not, write to the                         *
!  *                                                                         *
!  *   Free Software Foundation, Inc.,                                       *
!  *   59 Temple Place Suite 330,                                            *
!  *   Boston, MA  02111-1307, USA.                                          *
!  *                                                                         *
!  ***************************************************************************/
! 
! #ifndef __ROPE_H
! #define __ROPE_H
! 
! /**
!  * @file
!  * Rope.
!  */
! 
! #if _MSC_VER > 1000
! #pragma once
! #endif // _MSC_VER > 1000
! 
! #include "root.h"
! 
! namespace odb {
! 
! class CAtom;
! 
! /**
!  * The Rope.
!  */
! class CRope : public CRoot
!   {
!     DECLARE_RTTI
! 
!   private:
!     typedef CRoot inherited;
! 
!   protected:
!     CRope() {}; // forbidden
!   public:
!     CRope(long lid);
!     CRope(CAtom* poStartpoint, const string& sName = _T(""));
! 
!     CAtom* StartpointGet();
! 
!     CStream& Save(CStream& oStream);
!     CStream& Load(CStream& oStream);
!     bool     ResolveIDs(CODB& oDB);
! 
! 
!   protected:
!     CAtom* m_poStartpoint;
!   };
! 
! } // namespace odb
! 
! #endif // __ROPE_H

Index: rtti.h
===================================================================
RCS file: /cvsroot/moss/moss/odb/include/rtti.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** rtti.h      14 Mar 2002 23:08:21 -0000      1.1.1.1
--- rtti.h      12 Dec 2002 10:46:31 -0000      1.2
***************
*** 28,38 ****
   ***************************************************************************/
  
! #ifndef __RTTI_H
! #define __RTTI_H
  
  #include <string>
! 
! namespace odb {
! 
  #ifndef _T
        #define _T(s) (const string&) s
--- 28,43 ----
   ***************************************************************************/
  
! #ifndef __RTTI_H
! #define __RTTI_H
! 
! /**
!  * @file
!  * Rtti.
!  */
  
  #include <string>
! 
! namespace odb {
! 
  #ifndef _T
        #define _T(s) (const string&) s
***************
*** 46,58 ****
      string sClassName;
      long   lRelease;
!     long   lVersion;
! 
!     tagObjectInfo::tagObjectInfo(long c, long p, char* psz, long r, long v)
!       : lRtti(c),
!         lRttiRoot(p),
!         sClassName(psz),
!         lRelease(r),
!         lVersion(v)
!       {};
        
      } OBJECTINFO;
--- 51,63 ----
      string sClassName;
      long   lRelease;
!     long   lVersion;
! 
!     tagObjectInfo::tagObjectInfo(long c, long p, char* psz, long r, long v)
!       : lRtti(c),
!         lRttiRoot(p),
!         sClassName(psz),
!         lRelease(r),
!         lVersion(v)
!       {};
        
      } OBJECTINFO;
***************
*** 86,91 ****
  #define _Reason    0x00000801
  #define _Rope      0x00001001
! 
! } // namespace odb
! 
  #endif // __RTTI_H
--- 91,96 ----
  #define _Reason    0x00000801
  #define _Rope      0x00001001
! 
! } // namespace odb
! 
  #endif // __RTTI_H

Index: stream.h
===================================================================
RCS file: /cvsroot/moss/moss/odb/include/stream.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** stream.h    14 Mar 2002 23:08:21 -0000      1.1.1.1
--- stream.h    12 Dec 2002 10:46:31 -0000      1.2
***************
*** 1,16 ****
! /***************************************************************************
!                           stream.h  -  description
!                              -------------------
!     begin                : Fri Mar 3 2000
!     copyright            : (C) 1993..2000 by Manfred Morgner
!     email                : address@hidden
!  ***************************************************************************/
! 
! /***************************************************************************
!  *                                                                         *
!  *   This program is free software; you can redistribute it and/or modify  *
!  *   it under the terms of the GNU General Public License as published by  *
!  *   the Free Software Foundation; either version 2 of the License, or     *
!  *   (at your option) any later version.                                   *
   *                                                                         *
   *   This program is distributed in the hope that it will be useful,       *
--- 1,16 ----
! /***************************************************************************
!                           stream.h  -  description
!                              -------------------
!     begin                : Fri Mar 3 2000
!     copyright            : (C) 1993..2000 by Manfred Morgner
!     email                : address@hidden
!  ***************************************************************************/
! 
! /***************************************************************************
!  *                                                                         *
!  *   This program is free software; you can redistribute it and/or modify  *
!  *   it under the terms of the GNU General Public License as published by  *
!  *   the Free Software Foundation; either version 2 of the License, or     *
!  *   (at your option) any later version.                                   *
   *                                                                         *
   *   This program is distributed in the hope that it will be useful,       *
***************
*** 25,85 ****
   *   59 Temple Place Suite 330,                                            *
   *   Boston, MA  02111-1307, USA.                                          *
!  *                                                                         *
!  ***************************************************************************/
! 
! #ifndef __STREAM_H
! #define __STREAM_H
! 
! #if _MSC_VER >= 1000
! #pragma once
! #endif // _MSC_VER >= 1000
  
  #include <fstream>
! 
! namespace odb {
! 
! class CRoot;
! 
! class CStream  
!   {
!   protected:
! 
! /*
!     FILE* fopen( sFileName.c_str(), "wb" );
!     FILE* fopen( sFileName.c_str(), "rb" );
! */    
!     fstream m_oFile;
! 
! //    stream m_poFile;
! 
!   public:
!              CStream();
!              CStream(const string& sFileName, bool bWrite = false);
!     virtual ~CStream();
! 
!     bool Seek(long lPosition);
! 
!     /// reading operators
!     CStream& operator >> (long&     data);
!     CStream& operator >> (bool&     data);
!     CStream& operator >> (CRoot& data);
!     CStream& operator >> (string&   data);
!     CStream& operator >> (double&   data);
!     CStream& operator >> (timeval&  data);
! 
!     CStream& Read(void* pData, unsigned long ulSize);
! 
!     /// writing operators
!     CStream& operator << (long      data);
!     CStream& operator << (bool      data);
!     CStream& operator << (CRoot& data);
!     CStream& operator << (string&   data);
!     CStream& operator << (double    data);
!     CStream& operator << (timeval   data);
! 
!     CStream& Write(void* pData, unsigned long ulSize);
!   };
! 
! } // namespace odb
! 
! #endif // __ODB_STREAM_H
--- 25,90 ----
   *   59 Temple Place Suite 330,                                            *
   *   Boston, MA  02111-1307, USA.                                          *
!  *                                                                         *
!  ***************************************************************************/
! 
! #ifndef __STREAM_H
! #define __STREAM_H
! 
! /**
!  * @file
!  * Stream.
!  */
! 
! #if _MSC_VER >= 1000
! #pragma once
! #endif // _MSC_VER >= 1000
  
  #include <fstream>
! 
! namespace odb {
! 
! class CRoot;
! 
! class CStream  
!   {
!   protected:
! 
! /*
!     FILE* fopen( sFileName.c_str(), "wb" );
!     FILE* fopen( sFileName.c_str(), "rb" );
! */    
!     fstream m_oFile;
! 
! //    stream m_poFile;
! 
!   public:
!              CStream();
!              CStream(const string& sFileName, bool bWrite = false);
!     virtual ~CStream();
! 
!     bool Seek(long lPosition);
! 
!     /// reading operators
!     CStream& operator >> (long&     data);
!     CStream& operator >> (bool&     data);
!     CStream& operator >> (CRoot& data);
!     CStream& operator >> (string&   data);
!     CStream& operator >> (double&   data);
!     CStream& operator >> (timeval&  data);
! 
!     CStream& Read(void* pData, unsigned long ulSize);
! 
!     /// writing operators
!     CStream& operator << (long      data);
!     CStream& operator << (bool      data);
!     CStream& operator << (CRoot& data);
!     CStream& operator << (string&   data);
!     CStream& operator << (double    data);
!     CStream& operator << (timeval   data);
! 
!     CStream& Write(void* pData, unsigned long ulSize);
!   };
! 
! } // namespace odb
! 
! #endif // __ODB_STREAM_H

Index: transaction.h
===================================================================
RCS file: /cvsroot/moss/moss/odb/include/transaction.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** transaction.h       14 Mar 2002 23:08:21 -0000      1.1.1.1
--- transaction.h       12 Dec 2002 10:46:31 -0000      1.2
***************
*** 31,34 ****
--- 31,39 ----
  #define __TRANSACTION_H
  
+ 
+ /**
+  * @file
+  * Transaction.
+  */
  #if _MSC_VER >= 1000
  #pragma once
***************
*** 40,45 ****
  #include "object.h"
  #include "reason.h"
! 
! namespace odb {
  
  class CTransaction  
--- 45,50 ----
  #include "object.h"
  #include "reason.h"
! 
! namespace odb {
  
  class CTransaction  
***************
*** 88,92 ****
          long Append( const CRoot* poObject, const CSnapShot* poPrev )
            {
!           return ODB_FAILURE;
            } // CTransaction::CSnapShot::Add()
  
--- 93,97 ----
          long Append( const CRoot* poObject, const CSnapShot* poPrev )
            {
!           return ODB_FAILURE;
            } // CTransaction::CSnapShot::Add()
  
***************
*** 97,101 ****
              *m_poObject = *poObject;
              }
!           return ODB_FAILURE;
            } // CTransaction::CSnapShot::Add()
  
--- 102,106 ----
              *m_poObject = *poObject;
              }
!           return ODB_FAILURE;
            } // CTransaction::CSnapShot::Add()
  
***************
*** 103,108 ****
        }; // class CSnapShot
    }; // class CTransaction
! 
! } // namespace odb
  
  #endif // __TRANSACTION_H
--- 108,113 ----
        }; // class CSnapShot
    }; // class CTransaction
! 
! } // namespace odb
  
  #endif // __TRANSACTION_H




reply via email to

[Prev in Thread] Current Thread [Next in Thread]