|
libcrn
3.9.5
A document image processing library
|
Functions | |
| UInt | ToCRN (int i) |
| Converts an int to CRN data. More... | |
| UReal | ToCRN (double d) |
| Converts a double to CRN data. More... | |
| UString | ToCRN (const String &str) |
| Converts a String to CRN data. More... | |
| UStringUTF8 | ToCRN (const StringUTF8 &str) |
| Converts a StringUTF8 to CRN data. More... | |
| UPath | ToCRN (const Path &str) |
| Converts a Path to CRN data. More... | |
| UProp3 | ToCRN (const Prop3 &val) |
| Converts a Prop3 to CRN data. More... | |
| template<typename T > | |
| SObject | ToCRN (std::shared_ptr< T > ptr) |
| Converts a shared pointer to CRN data. More... | |
| template<typename T > | |
| UObject | ToCRN (const T *ptr) |
| Converts a pointer to CRN data (fails in not a Clonable object) More... | |
| template<typename T > | |
| UObject | ToCRN (const T &obj) |
| Converts an object to CRN data (fails in not a Clonable object) More... | |
| template<typename T > | |
| T | Convert (const Object &obj) |
| Converts from a CRN object to another type. More... | |
| template<> | |
| int | Convert (const Object &obj) |
| Converts from a CRN object to int. More... | |
| template<> | |
| unsigned int | Convert (const Object &obj) |
| Converts from a CRN object to unsigned int. More... | |
| template<> | |
| double | Convert (const Object &obj) |
| Converts from a CRN object to double. More... | |
| template<> | |
| String | Convert (const Object &obj) |
| Converts from a CRN object to String. More... | |
| template<> | |
| StringUTF8 | Convert (const Object &obj) |
| Converts from a CRN object to StringUTF8. More... | |
| template<> | |
| Path | Convert (const Object &obj) |
| Converts from a CRN object to Path. More... | |
| template<> | |
| Prop3 | Convert (const Object &obj) |
| Converts from a CRN object to Prop3. More... | |
| template<> | |
| bool | Convert (const Object &obj) |
| Converts from a CRN object to bool. More... | |
| crn::StringUTF8 | ASCII85Encode (const uint8_t *const data, size_t len) |
| Encodes any data into a printable string. More... | |
| std::vector< uint8_t > | ASCII85Decode (const crn::StringUTF8 &s) |
| Decodes an ASCII85 string to a vector of bytes. More... | |
| std::vector< T > crn::Data::ASCII85Decode | ( | const crn::StringUTF8 & | s | ) |
Decodes an ASCII85 string to a vector of bytes.
Decodes an ASCII85 string to a vector.
| ExceptionInvalidArgument | invalid ASCII85 string |
| ExceptionDimension | invalid size |
| [in] | s | an ASCII85 string |
| ExceptionInvalidArgument | invalid ASCII85 string |
| [in] | s | an ASCII85 string |
| StringUTF8 crn::Data::ASCII85Encode | ( | const uint8_t *const | data, |
| size_t | len | ||
| ) |
Encodes any data into a printable string.
Encodes any data into a printable string
| [in] | data | a string of bytes |
| [in] | len | the number of bytes to convert |
Definition at line 109 of file CRNData.cpp.
|
inline |
|
inline |
Converts from a CRN object to int.
| ExceptionInvalidArgument | impossible to convert |
| [in] | obj | an object to convert |
|
inline |
Converts from a CRN object to unsigned int.
| ExceptionInvalidArgument | impossible to convert |
| [in] | obj | an object to convert |
|
inline |
Converts from a CRN object to double.
| ExceptionInvalidArgument | impossible to convert |
| [in] | obj | an object to convert |
|
inline |
|
inline |
Converts from a CRN object to StringUTF8.
| [in] | obj | an object to convert |
|
inline |
|
inline |
Converts from a CRN object to Prop3.
| ExceptionInvalidArgument | impossible to convert |
| [in] | obj | an object to convert |
|
inline |
Converts from a CRN object to bool.
| ExceptionInvalidArgument | impossible to convert |
| [in] | obj | an object to convert |
| UInt crn::Data::ToCRN | ( | int | i | ) |
Converts an int to CRN data.
Converts an int to CRN data
| [in] | i | an integer |
Definition at line 33 of file CRNData.cpp.
| UReal crn::Data::ToCRN | ( | double | d | ) |
Converts a double to CRN data.
Converts a double to CRN data
| [in] | d | a double |
Definition at line 43 of file CRNData.cpp.
| UString crn::Data::ToCRN | ( | const String & | str | ) |
Converts a String to CRN data.
Converts a String to CRN data
| [in] | str | a String |
Definition at line 53 of file CRNData.cpp.
| UStringUTF8 crn::Data::ToCRN | ( | const StringUTF8 & | str | ) |
Converts a StringUTF8 to CRN data.
Converts a StringUTF8 to CRN data
| [in] | str | a StringUTF8 |
Definition at line 63 of file CRNData.cpp.
| UPath crn::Data::ToCRN | ( | const Path & | str | ) |
| UProp3 crn::Data::ToCRN | ( | const Prop3 & | val | ) |
|
inline |
|
inline |
1.8.6