Skip to content

Commit

Permalink
HEAD:(zeroc-ice/ice@8e3d0b07ec) Bring DataStorm into Ice 3.8 (zeroc-i…
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone authored and temp committed Oct 17, 2024
1 parent bd3cf30 commit f886572
Show file tree
Hide file tree
Showing 1,635 changed files with 28,878 additions and 2,207 deletions.
1,528 changes: 1,528 additions & 0 deletions slice2cpp/cpp/src/DataStorm/Contract.cpp

Large diffs are not rendered by default.

1,391 changes: 1,391 additions & 0 deletions slice2cpp/cpp/src/DataStorm/Contract.h

Large diffs are not rendered by default.

77 changes: 77 additions & 0 deletions slice2cpp/cpp/test/DataStorm/api/Test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.8.0-alpha.0
//
// <auto-generated>
//
// Generated from file `Test.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//

#define ICE_BUILDING_GENERATED_CODE
#include "Test.h"
#include <Ice/AsyncResponseHandler.h>
#include <Ice/FactoryTable.h>
#include <Ice/OutgoingAsync.h>

#if defined(_MSC_VER)
# pragma warning(disable : 4458) // declaration of ... hides class member
# pragma warning(disable : 4996) // ... was declared deprecated
#elif defined(__clang__)
# pragma clang diagnostic ignored "-Wshadow"
# pragma clang diagnostic ignored "-Wdeprecated-declarations"
#elif defined(__GNUC__)
# pragma GCC diagnostic ignored "-Wshadow"
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif

#ifndef ICE_IGNORE_VERSION
# if ICE_INT_VERSION != 30850
# error Ice version mismatch: an exact match is required for beta generated code
# endif
#endif

namespace
{
const ::IceInternal::FactoryTableInit iceC_factoryTableInit;
const ::IceInternal::DefaultValueFactoryInit<::Test::ClassKey> iceC_Test_ClassKey_init("::Test::ClassKey");
}

const char*
Test::ClassKey::ice_staticId() noexcept
{
return "::Test::ClassKey";
}

const char*
Test::ClassKey::ice_id() const noexcept
{
return ice_staticId();
}

::Ice::ValuePtr
Test::ClassKey::_iceCloneImpl() const
{
return CloneEnabler<ClassKey>::clone(*this);
}

void
Test::ClassKey::_iceWriteImpl(::Ice::OutputStream* ostr) const
{
ostr->startSlice(ice_staticId(), -1, true);
ostr->writeAll(this->value);
ostr->endSlice();
}

void
Test::ClassKey::_iceReadImpl(::Ice::InputStream* istr)
{
istr->startSlice();
istr->readAll(this->value);
istr->endSlice();
}
138 changes: 138 additions & 0 deletions slice2cpp/cpp/test/DataStorm/api/Test.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.8.0-alpha.0
//
// <auto-generated>
//
// Generated from file `Test.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//

#ifndef __Test_h__
#define __Test_h__

#include <Ice/PushDisableWarnings.h>
#include <Ice/Ice.h>

#ifndef ICE_IGNORE_VERSION
# if ICE_INT_VERSION != 30850
# error Ice version mismatch: an exact match is required for beta generated code
# endif
#endif

namespace Test
{
struct StructKey;

class ClassKey;
using ClassKeyPtr = ::std::shared_ptr<ClassKey>;

}

namespace Test
{

struct StructKey
{
::std::int32_t value;

/**
* Obtains a tuple containing all of the struct's data members.
* @return The data members in a tuple.
*/
std::tuple<const ::std::int32_t&> ice_tuple() const
{
return std::tie(value);
}
};

class ClassKey : public ::Ice::Value
{
public:
/**
* Default constructor.
*/
ClassKey() noexcept = default;

/**
* One-shot constructor to initialize all data members.
*/
explicit ClassKey(::std::int32_t value) noexcept :
value(value)
{
}

/**
* Obtains the Slice type ID of this value.
* @return The fully-scoped type ID.
*/
static const char* ice_staticId() noexcept;

const char* ice_id() const noexcept override;

/**
* Obtains a tuple containing all of the value's data members.
* @return The data members in a tuple.
*/
std::tuple<const ::std::int32_t&> ice_tuple() const
{
return std::tie(value);
}

/**
* Creates a shallow polymorphic copy of this instance.
* @return The cloned value.
*/
ClassKeyPtr ice_clone() const { return ::std::static_pointer_cast<ClassKey>(_iceCloneImpl()); }

::std::int32_t value;

protected:
ClassKey(const ClassKey&) = default;

::Ice::ValuePtr _iceCloneImpl() const override;
void _iceWriteImpl(::Ice::OutputStream*) const override;

void _iceReadImpl(::Ice::InputStream*) override;
};

using Ice::Tuple::operator<;
using Ice::Tuple::operator<=;
using Ice::Tuple::operator>;
using Ice::Tuple::operator>=;
using Ice::Tuple::operator==;
using Ice::Tuple::operator!=;

}

/// \cond STREAM
namespace Ice
{

template<>
struct StreamableTraits<::Test::StructKey>
{
static const StreamHelperCategory helper = StreamHelperCategoryStruct;
static const int minWireSize = 4;
static const bool fixedLength = true;
};

template<>
struct StreamReader<::Test::StructKey>
{
static void read(InputStream* istr, ::Test::StructKey& v)
{
istr->readAll(v.value);
}
};

}
/// \endcond

#include <Ice/PopDisableWarnings.h>
#endif
114 changes: 114 additions & 0 deletions slice2cpp/cpp/test/DataStorm/events/Test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.8.0-alpha.0
//
// <auto-generated>
//
// Generated from file `Test.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//

#define ICE_BUILDING_GENERATED_CODE
#include "Test.h"
#include <Ice/AsyncResponseHandler.h>
#include <Ice/FactoryTable.h>
#include <Ice/OutgoingAsync.h>

#if defined(_MSC_VER)
# pragma warning(disable : 4458) // declaration of ... hides class member
# pragma warning(disable : 4996) // ... was declared deprecated
#elif defined(__clang__)
# pragma clang diagnostic ignored "-Wshadow"
# pragma clang diagnostic ignored "-Wdeprecated-declarations"
#elif defined(__GNUC__)
# pragma GCC diagnostic ignored "-Wshadow"
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif

#ifndef ICE_IGNORE_VERSION
# if ICE_INT_VERSION != 30850
# error Ice version mismatch: an exact match is required for beta generated code
# endif
#endif

namespace
{
const ::IceInternal::FactoryTableInit iceC_factoryTableInit;
const ::IceInternal::DefaultValueFactoryInit<::Test::Base> iceC_Test_Base_init("::Test::Base");
const ::IceInternal::DefaultValueFactoryInit<::Test::Extended> iceC_Test_Extended_init("::Test::Extended");
}

const char*
Test::Base::ice_staticId() noexcept
{
return "::Test::Base";
}

const char*
Test::Base::ice_id() const noexcept
{
return ice_staticId();
}

::Ice::ValuePtr
Test::Base::_iceCloneImpl() const
{
return CloneEnabler<Base>::clone(*this);
}

void
Test::Base::_iceWriteImpl(::Ice::OutputStream* ostr) const
{
ostr->startSlice(ice_staticId(), -1, true);
ostr->writeAll(this->b);
ostr->endSlice();
}

void
Test::Base::_iceReadImpl(::Ice::InputStream* istr)
{
istr->startSlice();
istr->readAll(this->b);
istr->endSlice();
}

const char*
Test::Extended::ice_staticId() noexcept
{
return "::Test::Extended";
}

const char*
Test::Extended::ice_id() const noexcept
{
return ice_staticId();
}

::Ice::ValuePtr
Test::Extended::_iceCloneImpl() const
{
return CloneEnabler<Extended>::clone(*this);
}

void
Test::Extended::_iceWriteImpl(::Ice::OutputStream* ostr) const
{
ostr->startSlice(ice_staticId(), -1, false);
ostr->writeAll(this->e);
ostr->endSlice();
Base::_iceWriteImpl(ostr);
}

void
Test::Extended::_iceReadImpl(::Ice::InputStream* istr)
{
istr->startSlice();
istr->readAll(this->e);
istr->endSlice();
Base::_iceReadImpl(istr);
}
Loading

0 comments on commit f886572

Please sign in to comment.