1 | initial version |
what is the operator >> doing?
in c++, you can "overload" operators, to add new functionality. in the same way, you can write something to cout using cout << mystring
, you can write to a filenode using fs << "K" << 17
, and read it back using int n; fs["K"] >> n;
(maybe you can think of it as a primitive database / key-value store)
there is a "const" ..
this means, that the FileNode is not altered by reading from it.
you might want to take a look at the tutorial
2 | No.2 Revision |
What does this description mean?
a FileNode can hold either a single item (a number, string, or Mat), or a list of such items
what is the operator >> doing?
in c++, you can "overload" operators, to add new functionality. in the same way, you can write something to cout using cout << mystring
, you can write to a filenode using fs << "K" << 17
, and read it back using int n; fs["K"] >> n;
(maybe you can think of it as a primitive database / key-value store)
there is a "const" ..
this means, that the FileNode is not altered by reading from it.
you might want to take a look at the tutorial