src/StreamletMsg.h
branchv_0
changeset 31 c64e1588f428
parent 29 6f15f18d2abf
equal deleted inserted replaced
30:56409232e1a1 31:c64e1588f428
       
     1 // This file was generated from the specification.
       
     2 
       
     3 #pragma once
       
     4 
       
     5 #include <map>
       
     6 #include <string>
       
     7 
       
     8 namespace relpipe {
       
     9 namespace in {
       
    10 namespace filesystem {
       
    11 
       
    12 class StreamletMsg {
       
    13 public:
       
    14 
       
    15 	static const int VERSION_SUPPORTED;
       
    16 	static const int WAITING_FOR_VERSION;
       
    17 	static const int VERSION_ACCEPTED;
       
    18 	static const int RELATION_START;
       
    19 	static const int INPUT_ATTRIBUTE_METADATA;
       
    20 	static const int OUTPUT_ATTRIBUTE_ALIAS;
       
    21 	static const int OPTION;
       
    22 	static const int COMPLETION_REQUEST;
       
    23 	static const int COMPLETION;
       
    24 	static const int COMPLETION_END;
       
    25 	static const int WAITING_FOR_OUTPUT_ATTRIBUTES_METADATA;
       
    26 	static const int OUTPUT_ATTRIBUTE_METADATA;
       
    27 	static const int WAITING_FOR_INPUT_ATTRIBUTES;
       
    28 	static const int INPUT_ATTRIBUTE;
       
    29 	static const int WAITING_FOR_OUTPUT_ATTRIBUTES;
       
    30 	static const int OUTPUT_ATTRIBUTE;
       
    31 	static const int EXECUTOR_ERROR;
       
    32 	static const int STREAMLET_ERROR;
       
    33 	static const int STREAMLET_WARNING;
       
    34 	static const int RELATION_END;
       
    35 
       
    36 	static std::map<int, std::wstring> getMessageNames() {
       
    37 		std::map<int, std::wstring> m;
       
    38 
       
    39 		m[VERSION_SUPPORTED] = L"VERSION_SUPPORTED";
       
    40 		m[WAITING_FOR_VERSION] = L"WAITING_FOR_VERSION";
       
    41 		m[VERSION_ACCEPTED] = L"VERSION_ACCEPTED";
       
    42 		m[RELATION_START] = L"RELATION_START";
       
    43 		m[INPUT_ATTRIBUTE_METADATA] = L"INPUT_ATTRIBUTE_METADATA";
       
    44 		m[OUTPUT_ATTRIBUTE_ALIAS] = L"OUTPUT_ATTRIBUTE_ALIAS";
       
    45 		m[OPTION] = L"OPTION";
       
    46 		m[COMPLETION_REQUEST] = L"COMPLETION_REQUEST";
       
    47 		m[COMPLETION] = L"COMPLETION";
       
    48 		m[COMPLETION_END] = L"COMPLETION_END";
       
    49 		m[WAITING_FOR_OUTPUT_ATTRIBUTES_METADATA] = L"WAITING_FOR_OUTPUT_ATTRIBUTES_METADATA";
       
    50 		m[OUTPUT_ATTRIBUTE_METADATA] = L"OUTPUT_ATTRIBUTE_METADATA";
       
    51 		m[WAITING_FOR_INPUT_ATTRIBUTES] = L"WAITING_FOR_INPUT_ATTRIBUTES";
       
    52 		m[INPUT_ATTRIBUTE] = L"INPUT_ATTRIBUTE";
       
    53 		m[WAITING_FOR_OUTPUT_ATTRIBUTES] = L"WAITING_FOR_OUTPUT_ATTRIBUTES";
       
    54 		m[OUTPUT_ATTRIBUTE] = L"OUTPUT_ATTRIBUTE";
       
    55 		m[EXECUTOR_ERROR] = L"EXECUTOR_ERROR";
       
    56 		m[STREAMLET_ERROR] = L"STREAMLET_ERROR";
       
    57 		m[STREAMLET_WARNING] = L"STREAMLET_WARNING";
       
    58 		m[RELATION_END] = L"RELATION_END";
       
    59 
       
    60 		return m;
       
    61 	}
       
    62 
       
    63 };
       
    64 
       
    65 const int StreamletMsg::VERSION_SUPPORTED = 100;
       
    66 const int StreamletMsg::WAITING_FOR_VERSION = 101;
       
    67 const int StreamletMsg::VERSION_ACCEPTED = 102;
       
    68 const int StreamletMsg::RELATION_START = 103;
       
    69 const int StreamletMsg::INPUT_ATTRIBUTE_METADATA = 104;
       
    70 const int StreamletMsg::OUTPUT_ATTRIBUTE_ALIAS = 105;
       
    71 const int StreamletMsg::OPTION = 106;
       
    72 const int StreamletMsg::COMPLETION_REQUEST = 107;
       
    73 const int StreamletMsg::COMPLETION = 108;
       
    74 const int StreamletMsg::COMPLETION_END = 109;
       
    75 const int StreamletMsg::WAITING_FOR_OUTPUT_ATTRIBUTES_METADATA = 110;
       
    76 const int StreamletMsg::OUTPUT_ATTRIBUTE_METADATA = 111;
       
    77 const int StreamletMsg::WAITING_FOR_INPUT_ATTRIBUTES = 112;
       
    78 const int StreamletMsg::INPUT_ATTRIBUTE = 113;
       
    79 const int StreamletMsg::WAITING_FOR_OUTPUT_ATTRIBUTES = 114;
       
    80 const int StreamletMsg::OUTPUT_ATTRIBUTE = 115;
       
    81 const int StreamletMsg::EXECUTOR_ERROR = 116;
       
    82 const int StreamletMsg::STREAMLET_ERROR = 117;
       
    83 const int StreamletMsg::STREAMLET_WARNING = 118;
       
    84 const int StreamletMsg::RELATION_END = 120;
       
    85 
       
    86 }
       
    87 }
       
    88 }