core/matlab/examples/shrlib/shrlibsample.h

00001 /* $Revision: 1.1 $ */
00002 /* 
00003  * shrlibsample.h
00004  *
00005  * Copyright 2002-2003 The MathWorks, Inc.
00006  */
00007 
00008 #ifndef shrlibsample_h
00009 #define shrlibsample_h
00010 #include "shrhelp.h"
00011 
00012 typedef enum Enum1 {en1=1,en2,en4=4} TEnum1;
00013 
00014 struct c_struct {
00015     double p1;
00016     short p2;
00017     long  p3;
00018 };
00019 
00020 /* Function declarations */
00021 EXPORTED_FUNCTION void multDoubleArray(double *,int);
00022 
00023 EXPORTED_FUNCTION double addMixedTypes(short,int,double);
00024 
00025 EXPORTED_FUNCTION double addDoubleRef(double,double *,double);
00026 
00027 EXPORTED_FUNCTION char* stringToUpper(char *);
00028 
00029 EXPORTED_FUNCTION char* readEnum(TEnum1);
00030 
00031 EXPORTED_FUNCTION double addStructFields(struct c_struct);
00032 
00033 EXPORTED_FUNCTION double *multDoubleRef(double *x);
00034 
00035 EXPORTED_FUNCTION double addStructByRef(struct c_struct *);
00036 
00037 EXPORTED_FUNCTION void allocateStruct(struct c_struct**);
00038 
00039 EXPORTED_FUNCTION void deallocateStruct(void *ptr);
00040 
00041 EXPORTED_FUNCTION void multiplyShort(short *,int);
00042 
00043 #endif
00044 

GridLAB-DTM Version 1.0
An open-source project initiated by the US Department of Energy