public static class opencv_core.FileStorage extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Modifier and Type | Field and Description |
|---|---|
static int |
APPEND
enum cv::FileStorage::
|
static int |
FORMAT_AUTO
enum cv::FileStorage::
|
static int |
FORMAT_MASK
enum cv::FileStorage::
|
static int |
FORMAT_XML
enum cv::FileStorage::
|
static int |
FORMAT_YAML
enum cv::FileStorage::
|
static int |
INSIDE_MAP
enum cv::FileStorage::
|
static int |
MEMORY
enum cv::FileStorage::
|
static int |
NAME_EXPECTED
enum cv::FileStorage::
|
static int |
READ
enum cv::FileStorage::
|
static int |
UNDEFINED
enum cv::FileStorage::
|
static int |
VALUE_EXPECTED
enum cv::FileStorage::
|
static int |
WRITE
enum cv::FileStorage::
|
| Constructor and Description |
|---|
opencv_core.FileStorage()
the default constructor
|
opencv_core.FileStorage(BytePointer source,
int flags) |
opencv_core.FileStorage(BytePointer source,
int flags,
BytePointer encoding)
the full constructor that opens file storage for reading or writing
|
opencv_core.FileStorage(int size) |
opencv_core.FileStorage(opencv_core.CvFileStorage fs)
the constructor that takes pointer to the C FileStorage structure
|
opencv_core.FileStorage(Pointer p) |
opencv_core.FileStorage(String source,
int flags) |
opencv_core.FileStorage(String source,
int flags,
String encoding) |
| Modifier and Type | Method and Description |
|---|---|
BytePointer |
elname()
the currently written element
|
opencv_core.FileStorage |
elname(BytePointer elname) |
opencv_core.CvFileStorage |
fs()
the underlying C FileStorage structure
|
opencv_core.FileStorage |
fs(opencv_core.CvFileStorage fs) |
opencv_core.FileNode |
get(BytePointer nodename)
returns the specified element of the top-level mapping
|
opencv_core.FileNode |
get(String nodename) |
static BytePointer |
getDefaultObjectName(BytePointer filename)
returns the normalized object name for the specified file name
|
static String |
getDefaultObjectName(String filename) |
opencv_core.FileNode |
getFirstTopLevelNode()
returns the first element of the top-level mapping
|
boolean |
isOpened()
returns true if the object is associated with currently opened file.
|
opencv_core.CvFileStorage |
multiply()
returns pointer to the underlying C FileStorage structure
|
boolean |
open(BytePointer filename,
int flags) |
boolean |
open(BytePointer filename,
int flags,
BytePointer encoding)
opens file storage for reading or writing.
|
boolean |
open(String filename,
int flags) |
boolean |
open(String filename,
int flags,
String encoding) |
opencv_core.FileStorage |
position(int position) |
void |
release()
closes the file and releases all the memory buffers
|
BytePointer |
releaseAndGetString()
closes the file, releases all the memory buffers and returns the text string
|
opencv_core.FileNode |
root() |
opencv_core.FileNode |
root(int streamidx)
returns the top-level mapping.
|
int |
state()
the writer state
|
opencv_core.FileStorage |
state(int state) |
BytePointer |
structs()
the stack of written structures
|
opencv_core.FileStorage |
structs(BytePointer structs) |
void |
writeObj(BytePointer name,
Pointer obj)
writes the registered C structure (CvMat, CvMatND, CvSeq).
|
void |
writeObj(String name,
Pointer obj) |
void |
writeRaw(BytePointer fmt,
byte[] vec,
long len) |
void |
writeRaw(BytePointer fmt,
ByteBuffer vec,
long len) |
void |
writeRaw(BytePointer fmt,
BytePointer vec,
long len)
writes one or more numbers of the specified format to the currently written structure
|
void |
writeRaw(String fmt,
byte[] vec,
long len) |
void |
writeRaw(String fmt,
ByteBuffer vec,
long len) |
void |
writeRaw(String fmt,
BytePointer vec,
long len) |
address, asBuffer, asByteBuffer, capacity, capacity, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, hashCode, isNull, limit, limit, memchr, memcmp, memcpy, memmove, memset, offsetof, position, put, setNull, sizeof, toString, withDeallocator, zeropublic static final int READ
public static final int WRITE
public static final int APPEND
public static final int MEMORY
public static final int FORMAT_MASK
public static final int FORMAT_AUTO
public static final int FORMAT_XML
public static final int FORMAT_YAML
public static final int UNDEFINED
public static final int VALUE_EXPECTED
public static final int NAME_EXPECTED
public static final int INSIDE_MAP
public opencv_core.FileStorage(Pointer p)
public opencv_core.FileStorage(int size)
public opencv_core.FileStorage()
public opencv_core.FileStorage(BytePointer source, int flags, BytePointer encoding)
public opencv_core.FileStorage(BytePointer source, int flags)
public opencv_core.FileStorage(String source, int flags)
public opencv_core.FileStorage(opencv_core.CvFileStorage fs)
public opencv_core.FileStorage position(int position)
public boolean open(BytePointer filename, int flags, BytePointer encoding)
public boolean open(BytePointer filename, int flags)
public boolean open(String filename, int flags)
public boolean isOpened()
public void release()
public BytePointer releaseAndGetString()
public opencv_core.FileNode getFirstTopLevelNode()
public opencv_core.FileNode root(int streamidx)
public opencv_core.FileNode root()
public opencv_core.FileNode get(BytePointer nodename)
public opencv_core.FileNode get(String nodename)
public opencv_core.CvFileStorage multiply()
public void writeRaw(BytePointer fmt, BytePointer vec, long len)
public void writeRaw(String fmt, ByteBuffer vec, long len)
public void writeRaw(BytePointer fmt, byte[] vec, long len)
public void writeRaw(String fmt, BytePointer vec, long len)
public void writeRaw(BytePointer fmt, ByteBuffer vec, long len)
public void writeRaw(String fmt, byte[] vec, long len)
public void writeObj(BytePointer name, Pointer obj)
public static BytePointer getDefaultObjectName(BytePointer filename)
public opencv_core.CvFileStorage fs()
public opencv_core.FileStorage fs(opencv_core.CvFileStorage fs)
public BytePointer elname()
public opencv_core.FileStorage elname(BytePointer elname)
public BytePointer structs()
public opencv_core.FileStorage structs(BytePointer structs)
public int state()
public opencv_core.FileStorage state(int state)
Copyright © 2014. All Rights Reserved.