Carsten Neumann wrote:
[snip]
> Attached patch adds this,
[snip]
Is there a mailing program that can scan emails for sentences like this
and warn its user about not having added an attachment - I really need
such a thing it seems ;)
Now with patch.
Carsten
Index: Source/System/FieldContainer/Fields/Wrapper/OSGFieldContainerAttachmentFields.h
===================================================================
--- Source/System/FieldContainer/Fields/Wrapper/OSGFieldContainerAttachmentFields.h (revision 546)
+++ Source/System/FieldContainer/Fields/Wrapper/OSGFieldContainerAttachmentFields.h (working copy)
@@ -41,6 +41,6 @@
field type header.
*/
-#include "OSGFieldContainerSFields.h"
-#include "OSGFieldContainerMFields.h"
+#include "OSGFieldContainerAttachmentSFields.h"
+#include "OSGFieldContainerAttachmentMFields.h"
Index: Source/System/FieldContainer/Fields/OSGFieldContainerFieldTraits.h
===================================================================
--- Source/System/FieldContainer/Fields/OSGFieldContainerFieldTraits.h (revision 546)
+++ Source/System/FieldContainer/Fields/OSGFieldContainerFieldTraits.h (working copy)
@@ -282,7 +282,7 @@
typedef PointerFwdBuilder<
FieldContainerPtr,
FieldContainerConstPtr,
- FieldContainerAttachment>::ObjPtr FieldContainerAttachmentChunkPtr;
+ FieldContainerAttachment>::ObjPtr FieldContainerAttachmentPtr;
typedef PointerFwdBuilder<
FieldContainerPtr,
Index: Source/System/FieldContainer/Fields/OSGFieldContainerAttachmentFieldTraits.h
===================================================================
--- Source/System/FieldContainer/Fields/OSGFieldContainerAttachmentFieldTraits.h (revision 0)
+++ Source/System/FieldContainer/Fields/OSGFieldContainerAttachmentFieldTraits.h (revision 0)
@@ -0,0 +1,102 @@
+/*---------------------------------------------------------------------------*\
+ * OpenSG *
+ * *
+ * *
+ * Copyright (C) 2007 by the OpenSG Forum *
+ * *
+ * www.opensg.org *
+ * *
+ * contact: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] *
+ * *
+\*---------------------------------------------------------------------------*/
+/*---------------------------------------------------------------------------*\
+ * License *
+ * *
+ * This library is free software; you can redistribute it and/or modify it *
+ * under the terms of the GNU Library General Public License as published *
+ * by the Free Software Foundation, version 2. *
+ * *
+ * This library 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 *
+ * Library General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU Library General Public *
+ * License along with this library; if not, write to the Free Software *
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
+ * *
+\*---------------------------------------------------------------------------*/
+/*---------------------------------------------------------------------------*\
+ * Changes *
+ * *
+ * *
+ * *
+ * *
+ * *
+ * *
+\*---------------------------------------------------------------------------*/
+
+#ifndef _OSGFIELDCONTAINERATTACHMENTFIELDTRAITS_H_
+#define _OSGFIELDCONTAINERATTACHMENTFIELDTRAITS_H_
+#ifdef __sgi
+#pragma once
+#endif
+
+#include "OSGFieldContainerFieldTraits.h"
+#include "OSGDataType.h"
+
+#include "OSGContainerForwards.h"
+
+OSG_BEGIN_NAMESPACE
+
+#if !defined(OSG_DO_DOC) || (OSG_DOC_LEVEL >= 3)
+
+#ifdef OSG_DOC_FILES_IN_MODULE
+/*! \file
+ \ingroup
+ \ingroup
+*/
+#endif
+
+/*! \ingroup
+ */
+#if !defined(OSG_DOC_DEV_TRAITS)
+/*! \hideinhierarchy */
+#endif
+
+template <>
+struct FieldTraits<FieldContainerAttachmentPtr>
+ : public FieldTraitsFCPtrBase<FieldContainerAttachmentPtr>
+{
+ static DataType _type;
+ typedef FieldTraits<FieldContainerAttachmentPtr> Self;
+
+
+ enum { Convertible = Self::NotConvertible };
+
+ static DataType &getType (void)
+ {
+ return _type;
+ }
+
+ static const Char8 *getSName (void)
+ {
+ return "SFFieldContainerAttachmentPtr";
+ }
+
+ static const Char8 *getMName (void)
+ {
+ return "MFFieldContainerAttachmentPtr";
+ }
+};
+
+#if !defined(OSG_DOC_DEV_TRAITS)
+/*! \class FieldTraitsTemplateBase<NodePtr> */
+/*! \hideinhierarchy */
+#endif
+
+#endif // !defined(OSG_DO_DOC) || (OSG_DOC_LEVEL >= 3)
+
+OSG_END_NAMESPACE
+
+#endif /* _OSGFIELDCONTAINERATTACHMENTFIELDTRAITS_H_ */
Property changes on: Source/System/FieldContainer/Fields/OSGFieldContainerAttachmentFieldTraits.h
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Index: Source/System/FieldContainer/Fields/OSGFieldContainerAttachmentMFields.h
===================================================================
--- Source/System/FieldContainer/Fields/OSGFieldContainerAttachmentMFields.h (revision 0)
+++ Source/System/FieldContainer/Fields/OSGFieldContainerAttachmentMFields.h (revision 0)
@@ -0,0 +1,72 @@
+/*---------------------------------------------------------------------------*\
+ * OpenSG *
+ * *
+ * *
+ * Copyright (C) 2007 by the OpenSG Forum *
+ * *
+ * www.opensg.org *
+ * *
+ * contact: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] *
+ * *
+\*---------------------------------------------------------------------------*/
+/*---------------------------------------------------------------------------*\
+ * License *
+ * *
+ * This library is free software; you can redistribute it and/or modify it *
+ * under the terms of the GNU Library General Public License as published *
+ * by the Free Software Foundation, version 2. *
+ * *
+ * This library 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 *
+ * Library General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU Library General Public *
+ * License along with this library; if not, write to the Free Software *
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
+ * *
+\*---------------------------------------------------------------------------*/
+/*---------------------------------------------------------------------------*\
+ * Changes *
+ * *
+ * *
+ * *
+ * *
+ * *
+ * *
+\*---------------------------------------------------------------------------*/
+
+#ifndef _OSGFIELDCONTAINERATTACHMENTMFIELDS_H_
+#define _OSGFIELDCONTAINERATTACHMENTMFIELDS_H_
+#ifdef __sgi
+#pragma once
+#endif
+
+#include "OSGMField.h"
+#include "OSGMFieldAdaptor.h"
+#include "OSGFieldContainerAttachmentFieldTraits.h"
+#include "OSGFieldContainerMFields.h"
+
+OSG_BEGIN_NAMESPACE
+
+#if !defined(OSG_DO_DOC) || defined(OSG_DOC_FIELD_TYPEDEFS)
+/*! \ingroup */
+
+typedef MFieldAdaptor <FieldContainerAttachmentPtr,
+ MFFieldContainerPtr >
+ MFFieldContainerAttachmentPtr;
+
+#ifdef FDFOO
+typedef FieldDescription<FieldContainerAttachmentPtrFieldDesc,
+ MultiField >
+ MFieldContainerAttachmentPtrFieldDescription;
+#endif
+#endif
+
+#ifndef OSG_COMPILECONTAINERFIELDINST
+OSG_FIELD_DLLEXPORT_DECL1(MField, FieldContainerAttachmentPtr, OSG_SYSTEM_DLLTMPLMAPPING)
+#endif
+
+OSG_END_NAMESPACE
+
+#endif /* _OSGFIELDCONTAINERATTACHMENTMFIELDS_H_ */
Property changes on: Source/System/FieldContainer/Fields/OSGFieldContainerAttachmentMFields.h
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Index: Source/System/FieldContainer/Fields/OSGFieldContainerAttachmentSFields.h
===================================================================
--- Source/System/FieldContainer/Fields/OSGFieldContainerAttachmentSFields.h (revision 0)
+++ Source/System/FieldContainer/Fields/OSGFieldContainerAttachmentSFields.h (revision 0)
@@ -0,0 +1,72 @@
+/*---------------------------------------------------------------------------*\
+ * OpenSG *
+ * *
+ * *
+ * Copyright (C) 2007 by the OpenSG Forum *
+ * *
+ * www.opensg.org *
+ * *
+ * contact: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] *
+ * *
+\*---------------------------------------------------------------------------*/
+/*---------------------------------------------------------------------------*\
+ * License *
+ * *
+ * This library is free software; you can redistribute it and/or modify it *
+ * under the terms of the GNU Library General Public License as published *
+ * by the Free Software Foundation, version 2. *
+ * *
+ * This library 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 *
+ * Library General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU Library General Public *
+ * License along with this library; if not, write to the Free Software *
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
+ * *
+\*---------------------------------------------------------------------------*/
+/*---------------------------------------------------------------------------*\
+ * Changes *
+ * *
+ * *
+ * *
+ * *
+ * *
+ * *
+\*---------------------------------------------------------------------------*/
+
+#ifndef _OSGFIELDCONTAINERATTACHMENTSFIELDS_H_
+#define _OSGFIELDCONTAINERATTACHMENTSFIELDS_H_
+#ifdef __sgi
+#pragma once
+#endif
+
+#include "OSGSField.h"
+#include "OSGSFieldAdaptor.h"
+#include "OSGFieldContainerAttachmentFieldTraits.h"
+#include "OSGFieldContainerSFields.h"
+
+OSG_BEGIN_NAMESPACE
+
+#if !defined(OSG_DO_DOC) || defined(OSG_DOC_FIELD_TYPEDEFS)
+/*! \ingroup */
+
+typedef SFieldAdaptor <FieldContainerAttachmentPtr,
+ SFFieldContainerPtr >
+ SFFieldContainerAttachmentPtr;
+
+#ifdef FDFOO
+typedef FieldDescription<FieldContainerAttachmentPtrFieldDesc,
+ SingleField >
+ SFieldContainerAttachmentPtrFieldDescription;
+#endif
+#endif
+
+#ifndef OSG_COMPILECONTAINERFIELDINST
+OSG_FIELD_DLLEXPORT_DECL1(SField, FieldContainerAttachmentPtr, OSG_SYSTEM_DLLTMPLMAPPING)
+#endif
+
+OSG_END_NAMESPACE
+
+#endif /* _OSGFIELDCONTAINERATTACHMENTSFIELDS_H_ */
Property changes on: Source/System/FieldContainer/Fields/OSGFieldContainerAttachmentSFields.h
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Index: Source/System/FieldContainer/Fields/OSGContainerTypeInst.cpp
===================================================================
--- Source/System/FieldContainer/Fields/OSGContainerTypeInst.cpp (revision 546)
+++ Source/System/FieldContainer/Fields/OSGContainerTypeInst.cpp (working copy)
@@ -57,6 +57,9 @@
#include "OSGFieldContainerSFields.h"
#include "OSGFieldContainerMFields.h"
+#include "OSGFieldContainerAttachmentSFields.h"
+#include "OSGFieldContainerAttachmentMFields.h"
+
#include "OSGNodeSFields.h"
#include "OSGNodeMFields.h"
@@ -82,6 +85,10 @@
"ParentFieldContainerPtr",
NULL);
+DataType FieldTraits<FieldContainerAttachmentPtr>::_type(
+ "FieldContainerAttachmentPtr",
+ "FieldContainerPtr");
+
DataType FieldTraits<NodeCorePtr >::_type(
"NodeCorePtr",
"FieldContainerPtr");
@@ -109,7 +116,7 @@
OSG_FIELDTRAITS_GETTYPE (FieldContainerPtr )
OSG_FIELDTRAITS_GETTYPE_NS(ParentFieldContainerPtr, 1)
-#endif //!defined(OSG_DO_DOC) || (OSG_DOC_LEVEL >= 3)
+#endif // !defined(OSG_DO_DOC) || (OSG_DOC_LEVEL >= 3)
OSG_FIELD_DLLEXPORT_DEF1(SField, FieldContainerPtr);
OSG_FIELD_DLLEXPORT_DEF1(MField, FieldContainerPtr);
@@ -117,6 +124,9 @@
OSG_FIELD_DLLEXPORT_DEF2(SField, ParentFieldContainerPtr, 1);
OSG_FIELD_DLLEXPORT_DEF2(MField, ParentFieldContainerPtr, 1);
+OSG_FIELD_DLLEXPORT_DEF2(SFieldAdaptor, FieldContainerAttachmentPtr, SFFieldContainerPtr);
+OSG_FIELD_DLLEXPORT_DEF2(MFieldAdaptor, FieldContainerAttachmentPtr, MFFieldContainerPtr);
+
OSG_FIELD_DLLEXPORT_DEF2(SFieldAdaptor, NodeCorePtr, SFFieldContainerPtr);
OSG_FIELD_DLLEXPORT_DEF2(MFieldAdaptor, NodeCorePtr, MFFieldContainerPtr);
Index: Source/System/FieldContainer/Base/OSGFieldContainerAttachment.h
===================================================================
--- Source/System/FieldContainer/Base/OSGFieldContainerAttachment.h (revision 546)
+++ Source/System/FieldContainer/Base/OSGFieldContainerAttachment.h (working copy)
@@ -45,7 +45,7 @@
#include "OSGFieldContainer.h"
#include "OSGAttachmentMixin.h"
#include "OSGContainerMixinHead.h"
-#include "OSGFieldContainerFields.h"
+#include "OSGFieldContainerAttachmentFields.h"
OSG_BEGIN_NAMESPACE
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-core