| 1 | //-*****************************************************************************cxx . . $ `<file>/lib/Alembic/AbcCoreOgawa/CpwImpl.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_CpwImpl_h |
| 38 | #define Alembic_AbcCoreOgawa_CpwImpl_hcxx . . $ `lib/Alembic/AbcCoreOgawa/CpwImpl.h:38:9`! |
| 39 | |
| 40 | #include <Alembic/AbcCoreOgawa/Foundation.h>cxx . . $ `<file>/lib/Alembic/AbcCoreOgawa/Foundation.h`/ |
| 41 | #include <Alembic/AbcCoreOgawa/CpwData.h>cxx . . $ `<file>/lib/Alembic/AbcCoreOgawa/CpwData.h`/ |
| 42 | |
| 43 | namespace Alembiccxx . . $ Alembic/ { |
| 44 | namespace AbcCoreOgawacxx . . $ Alembic/AbcCoreOgawa/ { |
| 45 | namespace ALEMBIC_VERSION_NScxx . . $ `lib/Alembic/Util/Foundation.h:88:9`! { |
| 46 | |
| 47 | //-***************************************************************************** |
| 48 | class CpwImplcxx . . $ Alembic/AbcCoreOgawa/v12/CpwImpl# |
| 49 | : public AbcA::CompoundPropertyWritercxx . . $ Alembic/AbcCoreAbstract/v12/CompoundPropertyWriter# |
| 50 | , public Alembiccxx . . $ Alembic/::Utilcxx . . $ Alembic/Util/::enable_shared_from_thiscxx . . $ Alembic/Util/v12/enable_shared_from_this#<CpwImplcxx . . $ Alembic/AbcCoreOgawa/v12/CpwImpl#> |
| 51 | { |
| 52 | public: |
| 53 | |
| 54 | // "top" compound creation called by the object |
| 55 | CpwImplcxx . . $ Alembic/AbcCoreOgawa/v12/CpwImpl#CpwImpl(4e495048482026d7).( AbcA::ObjectWriterPtrcxx . . $ Alembic/AbcCoreAbstract/v12/ObjectWriterPtr# iParent, |
| 56 | CpwDataPtrcxx . . $ Alembic/AbcCoreOgawa/v12/CpwDataPtr# iData, |
| 57 | const AbcA::MetaDatacxx . . $ Alembic/AbcCoreAbstract/v12/MetaData# & iMeta ); |
| 58 | |
| 59 | // child compound creation |
| 60 | CpwImplcxx . . $ Alembic/AbcCoreOgawa/v12/CpwImpl#CpwImpl(8af89ed74c5ab804).( AbcA::CompoundPropertyWriterPtrcxx . . $ Alembic/AbcCoreAbstract/v12/CompoundPropertyWriterPtr# iParent, |
| 61 | Ogawacxx . . $ Alembic/Ogawa/::OGroupPtrcxx . . $ Alembic/Ogawa/v12/OGroupPtr# iGroup, |
| 62 | PropertyHeaderPtrcxx . . $ Alembic/AbcCoreOgawa/v12/PropertyHeaderPtr# iHeader, |
| 63 | size_t iIndex ); |
| 64 | |
| 65 | virtual ~cxx . . $ Alembic/AbcCoreOgawa/v12/CpwImpl#`~CpwImpl`(49f6e7a06ebc5aa8).CpwImplcxx . . $ Alembic/AbcCoreOgawa/v12/CpwImpl#(); |
| 66 | |
| 67 | //-************************************************************************* |
| 68 | // FROM BasePropertyWriter ABSTRACT |
| 69 | //-************************************************************************* |
| 70 | |
| 71 | virtual const AbcA::PropertyHeadercxx . . $ Alembic/AbcCoreAbstract/v12/PropertyHeader# & getHeadercxx . . $ Alembic/AbcCoreOgawa/v12/CpwImpl#getHeader(76eb4a300385ef6d).() const; |
| 72 | |
| 73 | virtual AbcA::ObjectWriterPtrcxx . . $ Alembic/AbcCoreAbstract/v12/ObjectWriterPtr# getObjectcxx . . $ Alembic/AbcCoreOgawa/v12/CpwImpl#getObject(f194e01aae74abaf).(); |
| 74 | |
| 75 | virtual AbcA::CompoundPropertyWriterPtrcxx . . $ Alembic/AbcCoreAbstract/v12/CompoundPropertyWriterPtr# getParentcxx . . $ Alembic/AbcCoreOgawa/v12/CpwImpl#getParent(4e13a4281ca57b15).(); |
| 76 | |
| 77 | virtual AbcA::CompoundPropertyWriterPtrcxx . . $ Alembic/AbcCoreAbstract/v12/CompoundPropertyWriterPtr# asCompoundPtrcxx . . $ Alembic/AbcCoreOgawa/v12/CpwImpl#asCompoundPtr(4e13a4281ca57b15).(); |
| 78 | |
| 79 | //-************************************************************************* |
| 80 | // FROM CompoundPropertyWriter ABSTRACT |
| 81 | //-************************************************************************* |
| 82 | |
| 83 | virtual size_t getNumPropertiescxx . . $ Alembic/AbcCoreOgawa/v12/CpwImpl#getNumProperties(f708dce9a8856c70).(); |
| 84 | |
| 85 | virtual const AbcA::PropertyHeadercxx . . $ Alembic/AbcCoreAbstract/v12/PropertyHeader# & getPropertyHeadercxx . . $ Alembic/AbcCoreOgawa/v12/CpwImpl#getPropertyHeader(55fb8d7048d998c3).( size_t i ); |
| 86 | |
| 87 | virtual const AbcA::PropertyHeadercxx . . $ Alembic/AbcCoreAbstract/v12/PropertyHeader# * |
| 88 | getPropertyHeadercxx . . $ Alembic/AbcCoreOgawa/v12/CpwImpl#getPropertyHeader(d2d3fe4ddadc5bbf).( const stdcxx . . $ std/::stringcxx . . $ std/string# &iName ); |
| 89 | |
| 90 | virtual AbcA::BasePropertyWriterPtrcxx . . $ Alembic/AbcCoreAbstract/v12/BasePropertyWriterPtr# |
| 91 | getPropertycxx . . $ Alembic/AbcCoreOgawa/v12/CpwImpl#getProperty(39f50122d4cdd02).( const stdcxx . . $ std/::stringcxx . . $ std/string# & iName ); |
| 92 | |
| 93 | virtual AbcA::ScalarPropertyWriterPtrcxx . . $ Alembic/AbcCoreAbstract/v12/ScalarPropertyWriterPtr# |
| 94 | createScalarPropertycxx . . $ Alembic/AbcCoreOgawa/v12/CpwImpl#createScalarProperty(42189a9473d2634f).( const stdcxx . . $ std/::stringcxx . . $ std/string# & iName, |
| 95 | const AbcA::MetaDatacxx . . $ Alembic/AbcCoreAbstract/v12/MetaData# & iMetaData, |
| 96 | const AbcA::DataTypecxx . . $ Alembic/AbcCoreAbstract/v12/DataType# & iDataType, |
| 97 | Utilcxx . . $ Alembic/Util/::uint32_tcxx . . $ Alembic/Util/v12/uint32_t# iTimeSamplingIndex ); |
| 98 | |
| 99 | virtual AbcA::ArrayPropertyWriterPtrcxx . . $ Alembic/AbcCoreAbstract/v12/ArrayPropertyWriterPtr# |
| 100 | createArrayPropertycxx . . $ Alembic/AbcCoreOgawa/v12/CpwImpl#createArrayProperty(4a9848c33e191c8e).( const stdcxx . . $ std/::stringcxx . . $ std/string# & iName, |
| 101 | const AbcA::MetaDatacxx . . $ Alembic/AbcCoreAbstract/v12/MetaData# & iMetaData, |
| 102 | const AbcA::DataTypecxx . . $ Alembic/AbcCoreAbstract/v12/DataType# & iDataType, |
| 103 | Utilcxx . . $ Alembic/Util/::uint32_tcxx . . $ Alembic/Util/v12/uint32_t# iTimeSamplingIndex ); |
| 104 | |
| 105 | virtual AbcA::CompoundPropertyWriterPtrcxx . . $ Alembic/AbcCoreAbstract/v12/CompoundPropertyWriterPtr# |
| 106 | createCompoundPropertycxx . . $ Alembic/AbcCoreOgawa/v12/CpwImpl#createCompoundProperty(150996dd7ac92d1e).( const stdcxx . . $ std/::stringcxx . . $ std/string# & iName, |
| 107 | const AbcA::MetaDatacxx . . $ Alembic/AbcCoreAbstract/v12/MetaData# & iMetaData ); |
| 108 | |
| 109 | void fillHashcxx . . $ Alembic/AbcCoreOgawa/v12/CpwImpl#fillHash(2a492a608c24fe66).( size_t iIndex, Utilcxx . . $ Alembic/Util/::uint64_tcxx . . $ Alembic/Util/v12/uint64_t# iHash0, |
| 110 | Utilcxx . . $ Alembic/Util/::uint64_tcxx . . $ Alembic/Util/v12/uint64_t# iHash1 ); |
| 111 | |
| 112 | private: |
| 113 | |
| 114 | // The object we belong to. |
| 115 | AbcA::ObjectWriterPtrcxx . . $ Alembic/AbcCoreAbstract/v12/ObjectWriterPtr# m_objectcxx . . $ Alembic/AbcCoreOgawa/v12/CpwImpl#m_object.; |
| 116 | |
| 117 | // The parent compound property writer. |
| 118 | AbcA::CompoundPropertyWriterPtrcxx . . $ Alembic/AbcCoreAbstract/v12/CompoundPropertyWriterPtr# m_parentcxx . . $ Alembic/AbcCoreOgawa/v12/CpwImpl#m_parent.; |
| 119 | |
| 120 | // The header which defines this property. |
| 121 | PropertyHeaderPtrcxx . . $ Alembic/AbcCoreOgawa/v12/PropertyHeaderPtr# m_headercxx . . $ Alembic/AbcCoreOgawa/v12/CpwImpl#m_header.; |
| 122 | |
| 123 | // child data, this is owned by the object for "top" compounds |
| 124 | CpwDataPtrcxx . . $ Alembic/AbcCoreOgawa/v12/CpwDataPtr# m_datacxx . . $ Alembic/AbcCoreOgawa/v12/CpwImpl#m_data.; |
| 125 | |
| 126 | // Index position within parent |
| 127 | size_t m_indexcxx . . $ Alembic/AbcCoreOgawa/v12/CpwImpl#m_index.; |
| 128 | }; |
| 129 | |
| 130 | } // End namespace ALEMBIC_VERSION_NS |
| 131 | |
| 132 | using namespace ALEMBIC_VERSION_NScxx . . $ `lib/Alembic/Util/Foundation.h:88:9`!; |
| 133 | |
| 134 | } // End namespace AbcCoreOgawa |
| 135 | } // End namespace Alembic |
| 136 | |
| 137 | #endif |