00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #pragma once
00014 #include <iostream>
00015 #include <type_traits>
00016
00017
00018
00019
00020 enum class DocxManagerErrorCode {
00021 WAPI_SUCCESS,
00022 WAPI_CANNOT_LOAD_FILE,
00023 WAPI_INVALID_FILE,
00024 WAPI_NO_MERGE_DATA,
00025 WAPI_LINKING_KEY_ISNT_SET,
00026 WAPI_NO_LINKING_KEY,
00027 WAPI_CANNOT_FIND_DIR,
00028 WAPI_WRITING_ERROR,
00029 WAPI_ISNT_LOCAL_FILE,
00030 WAPI_UNSUPPORTED_IMAGE_FILE,
00031 WAPI_EXPIRE_EVALUATION,
00032 WAPI_CANNOT_LOAD_LICFILE,
00033 WAPI_INVALID_LICFILE,
00034 WAPI_INVALID_OUTPUT,
00035 };
00036
00037 template<typename T>
00038 std::ostream& operator<<(typename std::enable_if<std::is_enum<T>::value, std::ostream>::type& stream, const T& e)
00039 {
00040 return stream << static_cast<typename std::underlying_type<T>::type>(e);
00041 }