diff options
Diffstat (limited to 'cpp/src/FreezeScript/Util.h')
-rw-r--r-- | cpp/src/FreezeScript/Util.h | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/cpp/src/FreezeScript/Util.h b/cpp/src/FreezeScript/Util.h deleted file mode 100644 index 71d07988602..00000000000 --- a/cpp/src/FreezeScript/Util.h +++ /dev/null @@ -1,83 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2015 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -#ifndef FREEZE_SCRIPT_UTIL_H -#define FREEZE_SCRIPT_UTIL_H - -#include <Slice/Parser.h> -#include <Ice/Initialize.h> -#include <Freeze/CatalogData.h> - -namespace FreezeScript -{ - -template<class T> -class Destroyer -{ -public: - - Destroyer() {} - Destroyer(T p) : _p(p) {} - ~Destroyer() - { - if(_p) - { - _p->destroy(); - } - } - - void set(T p) - { - if(_p) - { - _p->destroy(); - } - _p = p; - } - - void release() - { - _p = 0; - } - -private: - - T _p; -}; - -std::string typeName(const Slice::TypePtr&); -std::string typeToString(const Slice::TypePtr&); -bool ignoreType(const std::string&); -void createEvictorSliceTypes(const Slice::UnitPtr&); -bool parseSlice(const std::string&, const Slice::UnitPtr&, const std::vector<std::string>&, - const std::vector<std::string>&, bool, const std::string&); - -typedef std::map<std::string, Freeze::CatalogData> CatalogDataMap; - -CatalogDataMap readCatalog(const Ice::CommunicatorPtr&, const std::string&); - -class CompactIdResolverI : public Ice::CompactIdResolver -{ -public: - - virtual std::string resolve(Ice::Int) const; - - void add(Ice::Int, const std::string&); - -private: - - std::map<Ice::Int, std::string> _ids; -}; -typedef IceUtil::Handle<CompactIdResolverI> CompactIdResolverIPtr; - -void collectCompactIds(const Slice::UnitPtr&, const CompactIdResolverIPtr&); - -} // End of namespace FreezeScript - -#endif |