- Main Page
- Related Pages
- Modules
- Classes
- Files

# UniqueConstraintCollection.h

Go to the documentation of this file.

    00001 #ifndef _UNIQUECONSTRAINTCOLLECTION_H_
    00002 #define _UNIQUECONSTRAINTCOLLECTION_H_
    00003 //
    00004
    00005 //
    00006 // Copyright (C) 2004-2006  Autodesk, Inc.
    00007 //
    00008 // This library is free software; you can redistribute it and/or
    00009 // modify it under the terms of version 2.1 of the GNU Lesser
    00010 // General Public License as published by the Free Software Foundation.
    00011 //
    00012 // This library is distributed in the hope that it will be useful,
    00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of
    00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00015 // Lesser General Public License for more details.
    00016 //
    00017 // You should have received a copy of the GNU Lesser General Public
    00018 // License along with this library; if not, write to the Free Software
    00019 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    00020 //
    00021
    00022 #ifdef _WIN32
    00023 #pragma once
    00024 #endif
    00025
    00026 #include <FdoStd.h>
    00027 #include <Fdo/Schema/UniqueConstraint.h>
    00028 #include <Fdo/Schema/SchemaException.h>
    00029
    00030 /// \brief
    00031 /// The FdoUniqueConstraintCollection class represents a collection of FdoUniqueConstraint objects.
    00032 class FdoUniqueConstraintCollection : public FdoCollection<FdoUniqueConstraint, FdoSchemaException>
    00033 {
    00034 protected:
    00035     FdoUniqueConstraintCollection() : FdoCollection<FdoUniqueConstraint, FdoSchemaException>()
    00036     {
    00037     }
    00038
    00039     virtual ~FdoUniqueConstraintCollection()
    00040     {
    00041     }
    00042
    00043     virtual void Dispose()
    00044     {
    00045         delete this;
    00046     }
    00047
    00048 public:
    00049     /// \brief
    00050     /// Constructs a default instance of an FdoUniqueConstraintCollection.
    00051     ///
    00052     /// \return
    00053     /// Returns FdoUniqueConstraintCollection
    00054     ///
    00055     FDO_API static FdoUniqueConstraintCollection* Create();
    00056 };
    00057
    00058 /// \ingroup (typedefs)
    00059 /// \brief
    00060 /// FdoUniqueConstraintCollectionP is a FdoPtr on FdoUniqueConstraintCollection, provided for convenience.
    00061 typedef FdoPtr<FdoUniqueConstraintCollection> FdoUniqueConstraintCollectionP;
    00062
    00063 #endif
    00064
    00065

Please send us your comment about this page