00001 /* 00002 * Copyright (C) 2006 SL-King d.o.o 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of version 2.1 of the GNU Lesser 00006 * General Public License as published by the Free Software Foundation. 00007 * 00008 * This library is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 * Lesser General Public License for more details. 00012 * 00013 * You should have received a copy of the GNU Lesser General Public 00014 * License along with this library; if not, write to the Free Software 00015 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00016 */ 00017 #ifndef FDOKGORAPROPERTYDEFINITION_H 00018 #define FDOKGORAPROPERTYDEFINITION_H 00019 00020 #ifdef _WIN32 00021 #pragma once 00022 #endif //_WIN32 00023 00024 #include <KingOracle/Override/FdoKgOraColumnDefinition.h> 00025 00026 class FdoKgOraPropertyDefinition : public FdoPhysicalPropertyMapping 00027 { 00028 typedef FdoPhysicalElementMapping BaseType; 00029 00030 public: 00031 FDOKGORA_API static FdoKgOraPropertyDefinition* Create(); 00032 00033 public: 00034 FDOKGORA_API FdoKgOraColumnDefinition* GetColumn() const; 00035 FDOKGORA_API void SetColumn(FdoKgOraColumnDefinition * definition); 00036 00037 FDOKGORA_API virtual void InitFromXml(FdoXmlSaxContext* pContext, FdoXmlAttributeCollection* attrs); 00038 FDOKGORA_API virtual FdoXmlSaxHandler* XmlStartElement(FdoXmlSaxContext* Context,FdoString* Uri, FdoString* Name, FdoString* QName, FdoXmlAttributeCollection* Attrs); 00039 FDOKGORA_API virtual FdoBoolean XmlEndElement(FdoXmlSaxContext* Context, FdoString* Uri, FdoString* Name, FdoString* QName); 00040 FDOKGORA_API virtual void _writeXml( FdoXmlWriter* Writer, const FdoXmlFlags* Flags ); 00041 00042 protected: 00043 FdoKgOraPropertyDefinition(void); 00044 virtual ~FdoKgOraPropertyDefinition(void); 00045 virtual void Dispose(void); 00046 00047 private: 00048 FdoKgOraColumnDefinitionP m_ColumnDefinition; 00049 }; 00050 00051 typedef FdoPtr<FdoKgOraPropertyDefinition> FdoKgOraPropertyDefinitionP; 00052 00053 #endif // FDOKGORAPROPERTYDEFINITION_H 00054 00055