|
@@ -62,8 +62,7 @@ class Element;
|
|
|
P: "ShininessExponent", "double", "Number", "",0.5
|
|
|
@endvebatim
|
|
|
*/
|
|
|
-class Property
|
|
|
-{
|
|
|
+class Property {
|
|
|
protected:
|
|
|
Property();
|
|
|
|
|
@@ -78,15 +77,13 @@ public:
|
|
|
};
|
|
|
|
|
|
template<typename T>
|
|
|
-class TypedProperty : public Property
|
|
|
-{
|
|
|
+class TypedProperty : public Property {
|
|
|
public:
|
|
|
explicit TypedProperty(const T& value)
|
|
|
- : value(value)
|
|
|
- {
|
|
|
+ : value(value) {
|
|
|
+ // empty
|
|
|
}
|
|
|
|
|
|
-public:
|
|
|
const T& Value() const {
|
|
|
return value;
|
|
|
}
|
|
@@ -97,21 +94,19 @@ private:
|
|
|
|
|
|
|
|
|
typedef std::fbx_unordered_map<std::string,std::shared_ptr<Property> > DirectPropertyMap;
|
|
|
-typedef std::fbx_unordered_map<std::string,const Property*> PropertyMap;
|
|
|
-typedef std::fbx_unordered_map<std::string,const Element*> LazyPropertyMap;
|
|
|
+typedef std::fbx_unordered_map<std::string,const Property*> PropertyMap;
|
|
|
+typedef std::fbx_unordered_map<std::string,const Element*> LazyPropertyMap;
|
|
|
|
|
|
/**
|
|
|
* Represents a property table as can be found in the newer FBX files (Properties60, Properties70)
|
|
|
*/
|
|
|
-class PropertyTable
|
|
|
-{
|
|
|
+class PropertyTable {
|
|
|
public:
|
|
|
// in-memory property table with no source element
|
|
|
PropertyTable();
|
|
|
PropertyTable(const Element& element, std::shared_ptr<const PropertyTable> templateProps);
|
|
|
~PropertyTable();
|
|
|
|
|
|
-public:
|
|
|
const Property* Get(const std::string& name) const;
|
|
|
|
|
|
// PropertyTable's need not be coupled with FBX elements so this can be NULL
|
|
@@ -132,7 +127,6 @@ private:
|
|
|
const Element* const element;
|
|
|
};
|
|
|
|
|
|
-
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
template <typename T>
|
|
|
inline
|