Class for holding numbers.
This class can hold numbers, with range checks.
Located in /PelEntryNumber.php (line 77)
PelEntry | --PelEntryNumber
Class | Description |
---|---|
![]() |
Class for holding signed shorts. |
![]() |
Class for holding signed shorts. |
![]() |
Class for holding unsigned longs. |
![]() |
Class for holding signed longs. |
![]() |
Class for holding unsigned bytes. |
![]() |
Class for holding signed bytes. |
The dimension of the number held.
Normal numbers have a dimension of one, pairs have a dimension of two, etc.
The maximum allowed value.
Any attempt to change the value over this variable will result in a PelOverflowException being thrown.
The minimum allowed value.
Any attempt to change the value below this variable will result in a PelOverflowException being thrown.
The value held by this entry.
Inherited from PelEntry
PelEntry::$bytes
PelEntry::$components
PelEntry::$format
PelEntry::$ifd_type
PelEntry::$tag
Add a number.
This appends a number to the numbers already held by this entry, thereby increasing the number of components by one.
Format a number.
This method is called by getText to format numbers. Subclasses should override this method if they need more sophisticated behavior than the default, which is to just return the number as is.
Turn this entry into bytes.
Get the numeric value of this entry as text.
Return the numeric value held.
Convert a number into bytes.
The concrete subclasses will have to implement this method so that the numbers represented can be turned into bytes.
The method will be called once for each number held by the entry.
Change the value.
This method can change both the number of components and the value of the components. Range checks will be made on the new value, and a PelOverflowException will be thrown if the value is found to be outside the legal range.
The method accept several number arguments. The getValue method will always return an array except for when a single number is given here.
Change the value.
This method can change both the number of components and the value of the components. Range checks will be made on the new value, and a PelOverflowException will be thrown if the value is found to be outside the legal range.
Validate a number.
This method will check that the number given is within the range given my getMin() and getMax(), inclusive. If not, then a PelOverflowException is thrown.
Inherited From PelEntry
PelEntry::getBytes()
PelEntry::getComponents()
PelEntry::getFormat()
PelEntry::getIfdType()
PelEntry::getTag()
PelEntry::getText()
PelEntry::getValue()
PelEntry::setIfdType()
PelEntry::setValue()
PelEntry::__toString()
Documentation generated on Tue, 19 Dec 2006 01:08:20 +0100 by phpDocumentor 1.3.0