Lines Matching refs:Attribute
117 // If an OpenEXR file contains any attribute names, attribute type names
132 if (strlen (i.name()) >= 32 || strlen (i.attribute().typeName()) >= 32)
288 Header::insert (const char name[], const Attribute &attribute)
291 THROW (Iex::ArgExc, "Image attribute name cannot be an empty string.");
297 Attribute *tmp = attribute.copy();
311 if (strcmp (i->second->typeName(), attribute.typeName()))
313 "type \"" << attribute.typeName() << "\" "
314 "to image attribute \"" << name << "\" of "
317 Attribute *tmp = attribute.copy();
325 Header::insert (const string &name, const Attribute &attribute)
327 insert (name.c_str(), attribute);
331 Attribute &
337 THROW (Iex::ArgExc, "Cannot find image attribute \"" << name << "\".");
343 const Attribute &
349 THROW (Iex::ArgExc, "Cannot find image attribute \"" << name << "\".");
355 Attribute &
362 const Attribute &
706 attribute.");
903 // Write all attributes. If we have a preview image attribute,
909 const Attribute *preview =
915 // Write the attribute's name and type.
919 Xdr::write <StreamIO> (os, i.attribute().typeName());
922 // Write the size of the attribute value,
927 i.attribute().writeValueTo (oss, version);
932 if (&i.attribute() == preview)
939 // Write zero-length attribute name to mark the end of the header.
987 // Read the name of the attribute.
988 // A zero-length attribute name indicates the end of the header.
997 checkIsNullTerminated (name, "attribute name");
1000 // Read the attribute type and the size of the attribute value.
1007 checkIsNullTerminated (typeName, "attribute type name");
1015 // The attribute already exists (for example,
1016 // because it is a predefined attribute).
1017 // Read the attribute's new value from the file.
1021 THROW (Iex::InputExc, "Unexpected type for image attribute "
1029 // The new attribute does not exist yet.
1030 // If the attribute type is of a known type,
1031 // read the attribute value. If the attribute
1036 Attribute *attr;
1038 if (Attribute::knownType (typeName))
1039 attr = Attribute::newAttribute (typeName);
1070 // some predefined attribute types.