Main Page | Modules | Class List | File List | Class Members | File Members

ofxProperty.h

Go to the documentation of this file.
00001 #ifndef _ofxPropertyHost_h_
00002 #define _ofxPropertyHost_h_
00003 
00004 /*
00005 Software License :
00006 
00007 Copyright (c) 2003-2004, The Foundry Visionmongers Ltd. All rights reserved.
00008 
00009 Redistribution and use in source and binary forms, with or without
00010 modification, are permitted provided that the following conditions are met:
00011 
00012     * Redistributions of source code must retain the above copyright notice,
00013       this list of conditions and the following disclaimer.
00014     * Redistributions in binary form must reproduce the above copyright notice,
00015       this list of conditions and the following disclaimer in the documentation
00016       and/or other materials provided with the distribution.
00017     * Neither the name The Foundry Visionmongers Ltd, nor the names of its 
00018       contributors may be used to endorse or promote products derived from this
00019       software without specific prior written permission.
00020 
00021 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
00022 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00023 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00024 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
00025 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
00026 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
00027 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
00028 ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00029 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00030 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00031 */
00032 
00033 
00034 #include "ofxCore.h"
00035 
00036 #ifdef __cplusplus
00037 extern "C" {
00038 #endif
00039 
00044 #define kOfxPropertySuite "OfxPropertySuite"
00045 
00049 typedef struct OfxPropertySuiteV1 {
00064   OfxStatus (*propSetPointer)(OfxPropertySetHandle properties, const char *property, int index, void *value);
00065 
00080   OfxStatus (*propSetString) (OfxPropertySetHandle properties, const char *property, int index, const char *value);
00081 
00096   OfxStatus (*propSetDouble) (OfxPropertySetHandle properties, const char *property, int index, double value);
00097 
00112   OfxStatus (*propSetInt)    (OfxPropertySetHandle properties, const char *property, int index, int value);
00113 
00128   OfxStatus (*propSetPointerN)(OfxPropertySetHandle properties, const char *property, int count, void **value);
00129 
00144   OfxStatus (*propSetStringN) (OfxPropertySetHandle properties, const char *property, int count, const char **value);
00145 
00161   OfxStatus (*propSetDoubleN) (OfxPropertySetHandle properties, const char *property, int count, double *value);
00162 
00178   OfxStatus (*propSetIntN)    (OfxPropertySetHandle properties, const char *property, int count, int *value);
00179   
00193   OfxStatus (*propGetPointer)(OfxPropertySetHandle properties, const char *property, int index, void **value);
00194 
00208   OfxStatus (*propGetString) (OfxPropertySetHandle properties, const char *property, int index, char **value);
00209 
00225   OfxStatus (*propGetDouble) (OfxPropertySetHandle properties, const char *property, int index, double *value);
00226 
00240   OfxStatus (*propGetInt)    (OfxPropertySetHandle properties, const char *property, int index, int *value);
00241 
00255   OfxStatus (*propGetPointerN)(OfxPropertySetHandle properties, const char *property, int count, void **value);
00256 
00272   OfxStatus (*propGetStringN) (OfxPropertySetHandle properties, const char *property, int count, char **value);
00273 
00287   OfxStatus (*propGetDoubleN) (OfxPropertySetHandle properties, const char *property, int count, double *value);
00288 
00302   OfxStatus (*propGetIntN)    (OfxPropertySetHandle properties, const char *property, int count, int *value);
00303 
00314   OfxStatus (*propReset)    (OfxPropertySetHandle properties, const char *property);
00315 
00327   OfxStatus (*propGetDimension)  (OfxPropertySetHandle properties, const char *property, int *count);
00328 } OfxPropertySuiteV1;
00329 
00334 
00335 
00340 #ifdef __cplusplus
00341 }
00342 #endif
00343 
00344 
00345 #endif

Copyright 2003-2004 The Foundry Visonmongers Ltd. All rights reserved.
Copying and redistribution with or without modification, is permitted provided that the following conditions are met:
  1. Redistributions of the document must retain the above copyright notice and this list of conditions.
  2. Neither the name of The Foundry Visonmongers Ltd nor names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
Automatic documentation generated by DOxygen.