47 #ifndef _MIRA_PRINT_H_ 48 #define _MIRA_PRINT_H_ 90 friend std::ostream&
operator<< (std::ostream & s,
const TPrintHelper& This)
92 JSONSerializer ts(
true);
93 JSONValue val = ts.serialize(This.mValue);
94 jsonPrettyPrint(val, s, This.mFormat, This.mPrecision);
127 template <
typename T>
128 Private::TPrintHelper<T>
print(
const T& value,
bool prettyPrint=
true)
130 return Private::TPrintHelper<T>(value,
132 prettyPrint ? 16 : -1);
176 template <
typename T>
TEigenFormat< Derived > format(Eigen::MatrixBase< Derived > &matrix, Eigen::IOFormat format=EigenFormat::matlab())
Function for formatting an Eigen matrix using a special format.
Definition: EigenFormat.h:522
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
PrintFormat
used in print()
Definition: Print.h:58
std::ostream & operator<<(std::ostream &s, const LibraryVersion &version)
Private::TPrintHelper< T > print(const T &value, bool prettyPrint=true)
Convenient function for simple output of a serializable class to a stream.
Definition: Print.h:128
Structure elements and array items start on new line each.
Definition: Print.h:61
Compact, one line total.
Definition: Print.h:59
PropertyHint precision(int p)
Sets the attribute "precision".
Definition: PropertyHint.h:285
json::Value JSONValue
Imports the json::Value type into mira namespace.
Definition: JSON.h:363
Serializer and Deserializer for JSON format.
Structure elements start on new line each, primitive type arrays as one line only.
Definition: Print.h:60