12 #ifndef __VOP_OutputInfo_h__
13 #define __VOP_OutputInfo_h__
22 #define VOP_AUTO_CORR_INPUT_TOKEN "___auto___"
23 #define VOP_DEFAULT_INPUT_TOKEN "__default__"
28 static const char VOP_NUM_INFOS_TOKEN[] =
"NumInfos";
29 static const char VOP_BEGIN_INFO_RECORD_TOKEN[] =
"BeginInfo";
30 static const char VOP_NORMAL_MODE_TOKEN[] =
"NormalMode";
31 static const char VOP_END_INFO_RECORD_TOKEN[] =
"EndInfo";
32 static const char VOP_OUTPUT_NAME_TOKEN[] =
"OutputName";
33 static const char VOP_BYPASS_MODE_TOKEN[] =
"BypassMode";
34 static const char VOP_ARE_VALUES_BINARY_TOKEN[] =
"ValuesBinary";
35 static const char VOP_DEBUG_CORR_INPUT_NAME_TOKEN[] =
"DebugCorrInputName";
36 static const char VOP_BYPASS_CORR_INPUT_NAME_TOKEN[] =
"BypassCorrInputName";
37 static const char VOP_USE_DEFAULT_VALUE_TOKEN[] =
"UseDefaultValue";
39 static const char VOP_COMMENT_CHAR =
'#';
88 void appendOutputOverrideCode(
UT_String& str_code,
bool is_in_debug_mode,
bool is_in_bypass_mode);
97 void getOutputVariableCode(
UT_String &var_code);
99 bool save(std::ostream &os,
bool is_binary);
103 const char* getOutputName();
104 const char* getDebugCorrespondingInputName();
105 const char* getBypassCorrespondingInputName();
106 void setDebugCorrespondingInputName(
const char* input_name);
107 void setBypassCorrespondingInputName(
const char* input_name);
116 int findCorrespondingInput(
bool is_in_debug_mode,
bool is_in_bypass_mode);
120 static int autoFindCorrespondingInput(
VOP_Node* node,
const char* output_name);
135 std::string myDebugCorrespondingInputName, myBypassCorrespondingInputName;
136 bool myUseDefaultVal;
std::map< std::string, VOP_OutputInfo * > TOutputInfosMap
GLsizei const GLchar *const * string
void setUseDefaultValue(bool val)
A map of string to various well defined value types.
bool getUseDefaultValue()