summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp/GenUtil.h
blob: 0959c4eef807f75cb8288cc09c1b552faf1245af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// **********************************************************************
//
// Copyright (c) 2001
// MutableRealms, Inc.
// Huntsville, AL, USA
//
// All Rights Reserved
//
// **********************************************************************

#ifndef GEN_UTIL_H
#define GEN_UTIL_H

#include <Slice/Parser.h>
#include <Slice/OutputUtil.h>

namespace Slice
{

std::string typeToString(const TypePtr&);
std::string returnTypeToString(const TypePtr&);
std::string inputTypeToString(const TypePtr&);
std::string outputTypeToString(const TypePtr&);
std::string exceptionTypeToString(const TypePtr&);

void writeMarshalUnmarshalCode(Output&, const TypePtr&, const std::string&, bool);
void writeMarshalCode(Output&, const std::list<std::pair<TypePtr, std::string> >&, const TypePtr&);
void writeUnmarshalCode(Output&, const std::list<std::pair<TypePtr, std::string> >&, const TypePtr&);
void writeAllocateCode(Output&,	const std::list<std::pair<TypePtr, std::string> >&, const TypePtr&);

}

#endif