Alembic
1.8.11
Toggle main menu visibility
Loading...
Searching...
No Matches
CprImpl.h
1
//-*****************************************************************************
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_CprImpl_h
38
#define Alembic_AbcCoreOgawa_CprImpl_h
39
40
#include <Alembic/AbcCoreOgawa/Foundation.h>
41
#include <Alembic/AbcCoreOgawa/CprData.h>
42
43
namespace
Alembic
{
44
namespace
AbcCoreOgawa {
45
namespace
ALEMBIC_VERSION_NS {
46
47
//-*****************************************************************************
48
class
CprImpl
49
:
public
AbcA::CompoundPropertyReader
50
,
public
Alembic::Util::enable_shared_from_this<CprImpl>
51
{
52
public
:
53
54
// For construction from a compound property reader
55
CprImpl( AbcA::CompoundPropertyReaderPtr iParent,
56
Ogawa::IGroupPtr iGroup,
57
PropertyHeaderPtr iHeader,
58
std::size_t iThreadId,
59
const
std::vector< AbcA::MetaData > & iIndexedMetaData );
60
61
CprImpl( AbcA::ObjectReaderPtr iParent,
62
CprDataPtr iData );
63
64
virtual
~CprImpl();
65
66
//-*************************************************************************
67
// FROM ABSTRACT BasePropertyReader
68
//-*************************************************************************
69
virtual
const
AbcA::PropertyHeader &
getHeader
()
const
;
70
71
virtual
AbcA::ObjectReaderPtr
getObject
();
72
73
virtual
AbcA::CompoundPropertyReaderPtr
getParent
();
74
75
virtual
AbcA::CompoundPropertyReaderPtr
asCompoundPtr
();
76
77
//-*************************************************************************
78
// FROM ABSTRACT CompoundPropertyReader
79
//-*************************************************************************
80
virtual
size_t
getNumProperties
();
81
82
virtual
const
AbcA::PropertyHeader &
getPropertyHeader
(
size_t
i );
83
84
virtual
const
AbcA::PropertyHeader *
85
getPropertyHeader
(
const
std::string &iName );
86
87
virtual
AbcA::ScalarPropertyReaderPtr
88
getScalarProperty
(
const
std::string &iName );
89
90
virtual
AbcA::ArrayPropertyReaderPtr
91
getArrayProperty
(
const
std::string &iName );
92
93
virtual
AbcA::CompoundPropertyReaderPtr
94
getCompoundProperty
(
const
std::string &iName );
95
96
97
private
:
98
99
// Pointer to parent.
100
AbcA::CompoundPropertyReaderPtr m_parent;
101
102
// My header
103
PropertyHeaderPtr m_header;
104
105
// My Object
106
AbcA::ObjectReaderPtr m_object;
107
108
CprDataPtr m_data;
109
};
110
111
}
// End namespace ALEMBIC_VERSION_NS
112
113
using namespace
ALEMBIC_VERSION_NS;
114
115
}
// End namespace AbcCoreOgawa
116
}
// End namespace Alembic
117
118
#endif
Alembic::AbcCoreOgawa::ALEMBIC_VERSION_NS::CprImpl::asCompoundPtr
virtual AbcA::CompoundPropertyReaderPtr asCompoundPtr()
Definition
CprImpl.cpp:116
Alembic::AbcCoreOgawa::ALEMBIC_VERSION_NS::CprImpl::getHeader
virtual const AbcA::PropertyHeader & getHeader() const
Definition
CprImpl.cpp:98
Alembic::AbcCoreOgawa::ALEMBIC_VERSION_NS::CprImpl::getArrayProperty
virtual AbcA::ArrayPropertyReaderPtr getArrayProperty(const std::string &iName)
Definition
CprImpl.cpp:149
Alembic::AbcCoreOgawa::ALEMBIC_VERSION_NS::CprImpl::getScalarProperty
virtual AbcA::ScalarPropertyReaderPtr getScalarProperty(const std::string &iName)
Definition
CprImpl.cpp:142
Alembic::AbcCoreOgawa::ALEMBIC_VERSION_NS::CprImpl::getParent
virtual AbcA::CompoundPropertyReaderPtr getParent()
Definition
CprImpl.cpp:110
Alembic::AbcCoreOgawa::ALEMBIC_VERSION_NS::CprImpl::getObject
virtual AbcA::ObjectReaderPtr getObject()
Definition
CprImpl.cpp:104
Alembic::AbcCoreOgawa::ALEMBIC_VERSION_NS::CprImpl::getPropertyHeader
virtual const AbcA::PropertyHeader & getPropertyHeader(size_t i)
Definition
CprImpl.cpp:128
Alembic::AbcCoreOgawa::ALEMBIC_VERSION_NS::CprImpl::getNumProperties
virtual size_t getNumProperties()
Definition
CprImpl.cpp:122
Alembic::AbcCoreOgawa::ALEMBIC_VERSION_NS::CprImpl::getCompoundProperty
virtual AbcA::CompoundPropertyReaderPtr getCompoundProperty(const std::string &iName)
Definition
CprImpl.cpp:156
Alembic
Alembic namespace ...
Definition
ArchiveInfo.cpp:39
AbcCoreOgawa
CprImpl.h
Generated by
1.18.0