// ********************************************************************** // // Copyright (c) 2001 // MutableRealms, Inc. // Huntsville, AL, USA // // All Rights Reserved // // ********************************************************************** #ifndef C_PLUS_PLUS_UTIL_H #define C_PLUS_PLUS_UTIL_H #include #include namespace Slice { struct ToIfdef { SLICE_API char operator()(char); }; SLICE_API std::string changeInclude(const std::string&, const std::vector&); SLICE_API void printHeader(Output&); SLICE_API void printVersionCheck(Output&); SLICE_API void printDllExportStuff(Output&, const std::string&); SLICE_API std::string typeToString(const TypePtr&); SLICE_API std::string returnTypeToString(const TypePtr&); SLICE_API std::string inputTypeToString(const TypePtr&); SLICE_API std::string outputTypeToString(const TypePtr&); SLICE_API void writeMarshalUnmarshalCode(Output&, const TypePtr&, const std::string&, bool, const std::string& = "", bool = true); SLICE_API void writeMarshalCode(Output&, const std::list >&, const TypePtr&); SLICE_API void writeUnmarshalCode(Output&, const std::list >&, const TypePtr&); SLICE_API void writeAllocateCode(Output&, const std::list >&, const TypePtr&); } #endif