00001 /* 00002 * PROPRIETARY INFORMATION. This software is proprietary to 00003 * Side Effects Software Inc., and is not to be reproduced, 00004 * transmitted, or disclosed in any way without written permission. 00005 * 00006 * Produced by: 00007 * Side Effects Software Inc 00008 * 123 Front Street West, Suite 1401 00009 * Toronto, Ontario 00010 * Canada M5J 2M2 00011 * 416-504-9876 00012 * 00013 * NAME: VOP_CodeCompilerArgs.h ( VOP Library, C++) 00014 * 00015 * COMMENTS: Data for expanding local variables when evaluating the compiler 00016 * parameter. 00017 */ 00018 00019 #ifndef __VOP_CodeCompilerArgs__ 00020 #define __VOP_CodeCompilerArgs__ 00021 00022 #include "VOP_API.h" 00023 00024 #include <UT/UT_WorkBuffer.h> 00025 class UT_StringArray; 00026 00027 enum { 00028 VOP_VCC_SOURCEFILE, 00029 VOP_VCC_OBJECTFILE, 00030 VOP_VCC_ERRORFILE, 00031 VOP_VCC_INCLUDEPATH 00032 }; 00033 00034 class VOP_API VOP_CodeCompilerArgs { 00035 public: 00036 VOP_CodeCompilerArgs(const char *src, const char *obj, const char *err, 00037 UT_StringArray *incs) 00038 { 00039 mySourceFile = src; 00040 myObjectFile = obj; 00041 myErrorFile = err; 00042 myIncDirs = incs; 00043 } 00044 00045 const char *getSource() const { return mySourceFile; } 00046 const char *getObject() const { return myObjectFile; } 00047 const char *getError() const { return myErrorFile; } 00048 const char *getIncludes(); 00049 00050 const char *mySourceFile; // Source file 00051 const char *myObjectFile; // Desired object file 00052 const char *myErrorFile; // File for log of errors 00053 UT_StringArray *myIncDirs; // Include directories. 00054 UT_WorkBuffer myWorkBuffer; // For expanded include paths 00055 }; 00056 00057 #endif 00058
1.5.9