annotate src/getset.h @ 37:c9515589be7d v1.0

Licence
author Chris Cannam
date Thu, 22 Nov 2012 17:12:12 +0000
parents f7ca3afb429c
children 2db3640905ef
rev   line source
Chris@37 1 /*
Chris@37 2 jVamp
Chris@37 3
Chris@37 4 A Java host interface for Vamp audio analysis plugins
Chris@37 5
Chris@37 6 Centre for Digital Music, Queen Mary, University of London.
Chris@37 7 Copyright 2012 Chris Cannam and QMUL.
Chris@37 8
Chris@37 9 Permission is hereby granted, free of charge, to any person
Chris@37 10 obtaining a copy of this software and associated documentation
Chris@37 11 files (the "Software"), to deal in the Software without
Chris@37 12 restriction, including without limitation the rights to use, copy,
Chris@37 13 modify, merge, publish, distribute, sublicense, and/or sell copies
Chris@37 14 of the Software, and to permit persons to whom the Software is
Chris@37 15 furnished to do so, subject to the following conditions:
Chris@37 16
Chris@37 17 The above copyright notice and this permission notice shall be
Chris@37 18 included in all copies or substantial portions of the Software.
Chris@37 19
Chris@37 20 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
Chris@37 21 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
Chris@37 22 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
Chris@37 23 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR
Chris@37 24 ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
Chris@37 25 CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
Chris@37 26 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Chris@37 27
Chris@37 28 Except as contained in this notice, the names of the Centre for
Chris@37 29 Digital Music; Queen Mary, University of London; and Chris Cannam
Chris@37 30 shall not be used in advertising or otherwise to promote the sale,
Chris@37 31 use or other dealings in this Software without prior written
Chris@37 32 authorization.
Chris@37 33 */
Chris@7 34
Chris@7 35 #ifndef _GETSET_H_INCLUDED_
Chris@7 36 #define _GETSET_H_INCLUDED_
Chris@7 37
Chris@7 38 #include <jni.h>
Chris@7 39
Chris@7 40 #include <string>
Chris@7 41 #include <vector>
Chris@7 42
Chris@14 43 #include <vamp-hostsdk/RealTime.h>
Chris@14 44
Chris@10 45 extern int
Chris@10 46 getIntField(JNIEnv *env, jobject obj, std::string name);
Chris@10 47
Chris@7 48 extern void
Chris@7 49 setStringField(JNIEnv *env, jobject obj, std::string name, std::string value);
Chris@7 50
Chris@7 51 extern void
Chris@7 52 setFloatField(JNIEnv *env, jobject obj, std::string name, float value);
Chris@7 53
Chris@7 54 extern void
Chris@7 55 setBooleanField(JNIEnv *env, jobject obj, std::string name, bool value);
Chris@7 56
Chris@7 57 extern void
Chris@7 58 setIntField(JNIEnv *env, jobject obj, std::string name, int value);
Chris@7 59
Chris@7 60 extern void
Chris@14 61 setRealTimeField(JNIEnv *env, jobject obj, std::string name, Vamp::RealTime value);
Chris@14 62
Chris@14 63 extern void
Chris@7 64 setObjectField(JNIEnv *env, jobject obj, std::string name, std::string type, jobject value);
Chris@7 65
Chris@7 66 extern void
Chris@14 67 setFloatArrayField(JNIEnv *env, jobject obj, std::string name, std::vector<float> value);
Chris@14 68
Chris@14 69 extern void
Chris@7 70 setStringArrayField(JNIEnv *env, jobject obj, std::string name, std::vector<std::string> value);
Chris@7 71
Chris@7 72 extern jmethodID
Chris@7 73 getEnumValueOfMethod(JNIEnv *env);
Chris@7 74
Chris@7 75 #endif