| 1 | //-*****************************************************************************cxx . . $ `<file>/lib/Alembic/AbcCoreOgawa/OwImpl.h`/ |
| 2 | // |
| 3 | // Copyright (c) 2013, |
| 4 | // Sony Pictures Imageworks Inc. and |
| 5 | // Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. |
| 6 | // |
| 7 | // All rights reserved. |
| 8 | // |
| 9 | // Redistribution and use in source and binary forms, with or without |
| 10 | // modification, are permitted provided that the following conditions are |
| 11 | // met: |
| 12 | // * Redistributions of source code must retain the above copyright |
| 13 | // notice, this list of conditions and the following disclaimer. |
| 14 | // * Redistributions in binary form must reproduce the above |
| 15 | // copyright notice, this list of conditions and the following disclaimer |
| 16 | // in the documentation and/or other materials provided with the |
| 17 | // distribution. |
| 18 | // * Neither the name of Sony Pictures Imageworks, nor |
| 19 | // Industrial Light & Magic, nor the names of their contributors may be used |
| 20 | // to endorse or promote products derived from this software without specific |
| 21 | // prior written permission. |
| 22 | // |
| 23 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 24 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 25 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 26 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 27 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 28 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 29 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 30 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 31 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 32 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 33 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 34 | // |
| 35 | //-***************************************************************************** |
| 36 | |
| 37 | #ifndef Alembic_AbcCoreOgawa_OwImpl_h |
| 38 | #define Alembic_AbcCoreOgawa_OwImpl_hcxx . . $ `lib/Alembic/AbcCoreOgawa/OwImpl.h:38:9`! |
| 39 | |
| 40 | #include <Alembic/AbcCoreOgawa/Foundation.h>cxx . . $ `<file>/lib/Alembic/AbcCoreOgawa/Foundation.h`/ |
| 41 | #include <Alembic/AbcCoreOgawa/OwData.h>cxx . . $ `<file>/lib/Alembic/AbcCoreOgawa/OwData.h`/ |
| 42 | |
| 43 | namespace Alembiccxx . . $ Alembic/ { |
| 44 | namespace AbcCoreOgawacxx . . $ Alembic/AbcCoreOgawa/ { |
| 45 | namespace ALEMBIC_VERSION_NScxx . . $ Alembic/AbcCoreOgawa/v12/ { |
| 46 | |
| 47 | //-***************************************************************************** |
| 48 | // These are _always_ created as shared ptrs. |
| 49 | class OwImplcxx . . $ Alembic/AbcCoreOgawa/v12/OwImpl# |
| 50 | : public AbcA::ObjectWritercxx . . $ Alembic/AbcCoreAbstract/v12/ObjectWriter# |
| 51 | , public Alembiccxx . . $ Alembic/::Utilcxx . . $ Alembic/Util/::enable_shared_from_thiscxx . . $ Alembic/Util/v12/enable_shared_from_this#<OwImplcxx . . $ Alembic/AbcCoreOgawa/v12/OwImpl#> |
| 52 | { |
| 53 | public: |
| 54 | |
| 55 | OwImplcxx . . $ Alembic/AbcCoreOgawa/v12/OwImpl#OwImpl(950c3a2123dec8f5).( AbcA::ArchiveWriterPtrcxx . . $ Alembic/AbcCoreAbstract/v12/ArchiveWriterPtr# iArchive, |
| 56 | OwDataPtrcxx . . $ Alembic/AbcCoreOgawa/v12/OwDataPtr# iData, |
| 57 | const AbcA::MetaDatacxx . . $ Alembic/AbcCoreAbstract/v12/MetaData# & iMetaData ); |
| 58 | |
| 59 | OwImplcxx . . $ Alembic/AbcCoreOgawa/v12/OwImpl#OwImpl(1e2244a2be3e47f9).( AbcA::ObjectWriterPtrcxx . . $ Alembic/AbcCoreAbstract/v12/ObjectWriterPtr# iParent, |
| 60 | Ogawacxx . . $ Alembic/Ogawa/::OGroupPtrcxx . . $ Alembic/Ogawa/v12/OGroupPtr# iGroup, |
| 61 | ObjectHeaderPtrcxx . . $ Alembic/AbcCoreOgawa/v12/ObjectHeaderPtr# iHeader, |
| 62 | size_t iIndex ); |
| 63 | |
| 64 | virtual ~cxx . . $ Alembic/AbcCoreOgawa/v12/OwImpl#`~OwImpl`(49f6e7a06ebc5aa8).OwImplcxx . . $ Alembic/AbcCoreOgawa/v12/OwImpl#(); |
| 65 | |
| 66 | //-************************************************************************* |
| 67 | // FROM ABSTRACT |
| 68 | //-************************************************************************* |
| 69 | |
| 70 | virtual const AbcA::ObjectHeadercxx . . $ Alembic/AbcCoreAbstract/v12/ObjectHeader# & getHeadercxx . . $ Alembic/AbcCoreOgawa/v12/OwImpl#getHeader(2a9b771d33d2853c).() const; |
| 71 | |
| 72 | virtual AbcA::ArchiveWriterPtrcxx . . $ Alembic/AbcCoreAbstract/v12/ArchiveWriterPtr# getArchivecxx . . $ Alembic/AbcCoreOgawa/v12/OwImpl#getArchive(a6d02fc4f41264b2).(); |
| 73 | |
| 74 | virtual AbcA::ObjectWriterPtrcxx . . $ Alembic/AbcCoreAbstract/v12/ObjectWriterPtr# getParentcxx . . $ Alembic/AbcCoreOgawa/v12/OwImpl#getParent(f194e01aae74abaf).(); |
| 75 | |
| 76 | virtual AbcA::CompoundPropertyWriterPtrcxx . . $ Alembic/AbcCoreAbstract/v12/CompoundPropertyWriterPtr# getPropertiescxx . . $ Alembic/AbcCoreOgawa/v12/OwImpl#getProperties(4e13a4281ca57b15).(); |
| 77 | |
| 78 | virtual size_t getNumChildrencxx . . $ Alembic/AbcCoreOgawa/v12/OwImpl#getNumChildren(f708dce9a8856c70).(); |
| 79 | |
| 80 | virtual const AbcA::ObjectHeadercxx . . $ Alembic/AbcCoreAbstract/v12/ObjectHeader# & getChildHeadercxx . . $ Alembic/AbcCoreOgawa/v12/OwImpl#getChildHeader(3ff89ca46e36a044).( size_t i ); |
| 81 | |
| 82 | virtual const AbcA::ObjectHeadercxx . . $ Alembic/AbcCoreAbstract/v12/ObjectHeader# * |
| 83 | getChildHeadercxx . . $ Alembic/AbcCoreOgawa/v12/OwImpl#getChildHeader(6b221a0dd1fe69a0).( const stdcxx . . $ std/::stringcxx . . $ std/string# &iName ); |
| 84 | |
| 85 | virtual AbcA::ObjectWriterPtrcxx . . $ Alembic/AbcCoreAbstract/v12/ObjectWriterPtr# getChildcxx . . $ Alembic/AbcCoreOgawa/v12/OwImpl#getChild(3b305b490ae90cb2).( const stdcxx . . $ std/::stringcxx . . $ std/string# &iName ); |
| 86 | |
| 87 | virtual AbcA::ObjectWriterPtrcxx . . $ Alembic/AbcCoreAbstract/v12/ObjectWriterPtr# |
| 88 | createChildcxx . . $ Alembic/AbcCoreOgawa/v12/OwImpl#createChild(e2e5912d46dcca2d).( const AbcA::ObjectHeadercxx . . $ Alembic/AbcCoreAbstract/v12/ObjectHeader# &iHeader ); |
| 89 | |
| 90 | virtual AbcA::ObjectWriterPtrcxx . . $ Alembic/AbcCoreAbstract/v12/ObjectWriterPtr# asObjectPtrcxx . . $ Alembic/AbcCoreOgawa/v12/OwImpl#asObjectPtr(f194e01aae74abaf).(); |
| 91 | |
| 92 | void fillHashcxx . . $ Alembic/AbcCoreOgawa/v12/OwImpl#fillHash(2a492a608c24fe66).( size_t iIndex, Utilcxx . . $ Alembic/Util/::uint64_tcxx . . $ Alembic/Util/v12/uint64_t# iHash0, |
| 93 | Utilcxx . . $ Alembic/Util/::uint64_tcxx . . $ Alembic/Util/v12/uint64_t# iHash1 ); |
| 94 | |
| 95 | private: |
| 96 | // The parent object, NULL if it is the "top" object |
| 97 | AbcA::ObjectWriterPtrcxx . . $ Alembic/AbcCoreAbstract/v12/ObjectWriterPtr# m_parentcxx . . $ Alembic/AbcCoreOgawa/v12/OwImpl#m_parent.; |
| 98 | |
| 99 | // The archive ptr. |
| 100 | AbcA::ArchiveWriterPtrcxx . . $ Alembic/AbcCoreAbstract/v12/ArchiveWriterPtr# m_archivecxx . . $ Alembic/AbcCoreOgawa/v12/OwImpl#m_archive.; |
| 101 | |
| 102 | // The header which defines this property. |
| 103 | ObjectHeaderPtrcxx . . $ Alembic/AbcCoreOgawa/v12/ObjectHeaderPtr# m_headercxx . . $ Alembic/AbcCoreOgawa/v12/OwImpl#m_header.; |
| 104 | |
| 105 | // child object data, this is owned by the archive for "top" objects |
| 106 | OwDataPtrcxx . . $ Alembic/AbcCoreOgawa/v12/OwDataPtr# m_datacxx . . $ Alembic/AbcCoreOgawa/v12/OwImpl#m_data.; |
| 107 | |
| 108 | size_t m_indexcxx . . $ Alembic/AbcCoreOgawa/v12/OwImpl#m_index.; |
| 109 | |
| 110 | }; |
| 111 | |
| 112 | } // End namespace ALEMBIC_VERSION_NS |
| 113 | |
| 114 | using namespace ALEMBIC_VERSION_NScxx . . $ `lib/Alembic/Util/Foundation.h:88:9`!; |
| 115 | |
| 116 | } // End namespace AbcCoreOgawa |
| 117 | } // End namespace Alembic |
| 118 | |
| 119 | #endif |