You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by jb...@apache.org on 2017/02/24 03:39:27 UTC
[6/8] geode-native git commit: GEODE-2439: Remove C++ fixed width
integers from clicache
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/RegionFactory.cpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/RegionFactory.cpp b/src/clicache/src/RegionFactory.cpp
index dd75b32..08f2e2d 100644
--- a/src/clicache/src/RegionFactory.cpp
+++ b/src/clicache/src/RegionFactory.cpp
@@ -96,28 +96,28 @@ namespace Apache
// EXPIRATION ATTRIBUTES
- RegionFactory^ RegionFactory::SetEntryIdleTimeout( ExpirationAction action, uint32_t idleTimeout )
+ RegionFactory^ RegionFactory::SetEntryIdleTimeout( ExpirationAction action, System::UInt32 idleTimeout )
{
NativePtr->setEntryIdleTimeout(
static_cast<apache::geode::client::ExpirationAction::Action>( action ), idleTimeout );
return this;
}
- RegionFactory^ RegionFactory::SetEntryTimeToLive( ExpirationAction action, uint32_t timeToLive )
+ RegionFactory^ RegionFactory::SetEntryTimeToLive( ExpirationAction action, System::UInt32 timeToLive )
{
NativePtr->setEntryTimeToLive(
static_cast<apache::geode::client::ExpirationAction::Action>( action ), timeToLive );
return this;
}
- RegionFactory^ RegionFactory::SetRegionIdleTimeout( ExpirationAction action, uint32_t idleTimeout )
+ RegionFactory^ RegionFactory::SetRegionIdleTimeout( ExpirationAction action, System::UInt32 idleTimeout )
{
NativePtr->setRegionIdleTimeout(
static_cast<apache::geode::client::ExpirationAction::Action>( action ), idleTimeout );
return this;
}
- RegionFactory^ RegionFactory::SetRegionTimeToLive( ExpirationAction action, uint32_t timeToLive )
+ RegionFactory^ RegionFactory::SetRegionTimeToLive( ExpirationAction action, System::UInt32 timeToLive )
{
NativePtr->setRegionTimeToLive(
static_cast<apache::geode::client::ExpirationAction::Action>( action ), timeToLive );
@@ -179,7 +179,7 @@ namespace Apache
// MAP ATTRIBUTES
- RegionFactory^ RegionFactory::SetInitialCapacity( int32_t initialCapacity )
+ RegionFactory^ RegionFactory::SetInitialCapacity( System::Int32 initialCapacity )
{
_GF_MG_EXCEPTION_TRY2
@@ -199,7 +199,7 @@ namespace Apache
_GF_MG_EXCEPTION_CATCH_ALL2
}
- RegionFactory^ RegionFactory::SetConcurrencyLevel( int32_t concurrencyLevel )
+ RegionFactory^ RegionFactory::SetConcurrencyLevel( System::Int32 concurrencyLevel )
{
_GF_MG_EXCEPTION_TRY2
@@ -209,7 +209,7 @@ namespace Apache
_GF_MG_EXCEPTION_CATCH_ALL2
}
- RegionFactory^ RegionFactory::SetLruEntriesLimit( uint32_t entriesLimit )
+ RegionFactory^ RegionFactory::SetLruEntriesLimit( System::UInt32 entriesLimit )
{
NativePtr->setLruEntriesLimit( entriesLimit );
return this;
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/RegionFactory.hpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/RegionFactory.hpp b/src/clicache/src/RegionFactory.hpp
index c3dd2aa..337e2da 100644
--- a/src/clicache/src/RegionFactory.hpp
+++ b/src/clicache/src/RegionFactory.hpp
@@ -126,7 +126,7 @@ namespace Apache
/// the idleTimeout in seconds for entries in this region.
/// </param>
/// <returns>the instance of RegionFactory</returns>
- RegionFactory^ SetEntryIdleTimeout( ExpirationAction action, uint32_t idleTimeout );
+ RegionFactory^ SetEntryIdleTimeout( ExpirationAction action, System::UInt32 idleTimeout );
/// <summary>
/// Sets the timeToLive expiration attributes for region entries for the next
@@ -139,7 +139,7 @@ namespace Apache
/// the timeToLive in seconds for entries in this region.
/// </param>
/// <returns>the instance of RegionFactory</returns>
- RegionFactory^ SetEntryTimeToLive( ExpirationAction action, uint32_t timeToLive );
+ RegionFactory^ SetEntryTimeToLive( ExpirationAction action, System::UInt32 timeToLive );
/// <summary>
/// Sets the idleTimeout expiration attributes for the region itself for the
@@ -152,7 +152,7 @@ namespace Apache
/// the idleTimeout in seconds for the region as a whole.
/// </param>
/// <returns>the instance of RegionFactory</returns>
- RegionFactory^ SetRegionIdleTimeout( ExpirationAction action, uint32_t idleTimeout );
+ RegionFactory^ SetRegionIdleTimeout( ExpirationAction action, System::UInt32 idleTimeout );
/// <summary>
/// Sets the timeToLive expiration attributes for the region itself for the
@@ -165,7 +165,7 @@ namespace Apache
/// the timeToLive in seconds for the region as a whole.
/// </param>
/// <returns>the instance of RegionFactory</returns>
- RegionFactory^ SetRegionTimeToLive( ExpirationAction action, uint32_t timeToLive );
+ RegionFactory^ SetRegionTimeToLive( ExpirationAction action, System::UInt32 timeToLive );
// PERSISTENCE
@@ -246,7 +246,7 @@ namespace Apache
/// if initialCapacity is nonpositive
/// </exception>
/// <returns>the instance of RegionFactory</returns>
- RegionFactory^ SetInitialCapacity( int32_t initialCapacity );
+ RegionFactory^ SetInitialCapacity( System::Int32 initialCapacity );
/// <summary>
/// Sets the entry load factor for the next <c>RegionAttributes</c>
@@ -271,7 +271,7 @@ namespace Apache
/// if concurrencyLevel is nonpositive
/// </exception>
/// <returns>the instance of RegionFactory</returns>
- RegionFactory^ SetConcurrencyLevel( int32_t concurrencyLevel );
+ RegionFactory^ SetConcurrencyLevel( System::Int32 concurrencyLevel );
/// <summary>
/// Sets a limit on the number of entries that will be held in the cache.
@@ -283,7 +283,7 @@ namespace Apache
/// Defaults to 0, meaning no LRU actions will used.
/// </param>
/// <returns>the instance of RegionFactory</returns>
- RegionFactory^ SetLruEntriesLimit( uint32_t entriesLimit );
+ RegionFactory^ SetLruEntriesLimit( System::UInt32 entriesLimit );
/// <summary>
/// Sets the disk policy type for the next <c>RegionAttributes</c> created.
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/ResultCollector.cpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/ResultCollector.cpp b/src/clicache/src/ResultCollector.cpp
index 490de81..c5d8bf1 100644
--- a/src/clicache/src/ResultCollector.cpp
+++ b/src/clicache/src/ResultCollector.cpp
@@ -55,7 +55,7 @@ namespace Apache
apache::geode::client::CacheableVectorPtr results = NativePtr->getResult(timeout);
array<TResult>^ rs =
gcnew array<TResult>( results->size( ) );
- for( int32_t index = 0; index < results->size( ); index++ )
+ for( System::Int32 index = 0; index < results->size( ); index++ )
{
apache::geode::client::CacheablePtr& nativeptr(results->operator[](index));
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/ResultSet.cpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/ResultSet.cpp b/src/clicache/src/ResultSet.cpp
index aa1e46b..9ddcf6f 100644
--- a/src/clicache/src/ResultSet.cpp
+++ b/src/clicache/src/ResultSet.cpp
@@ -38,7 +38,7 @@ namespace Apache
}
generic<class TResult>
- int32_t ResultSet<TResult>::Size::get( )
+ System::Int32 ResultSet<TResult>::Size::get( )
{
return NativePtr->size( );
}
@@ -46,8 +46,8 @@ namespace Apache
generic<class TResult>
/*IGeodeSerializable^*/TResult ResultSet<TResult>::default::get( size_t index )
{
- //return SafeUMSerializableConvertGeneric(NativePtr->operator[](static_cast<int32_t>(index)).ptr());
- return (Serializable::GetManagedValueGeneric<TResult>(NativePtr->operator[](static_cast<int32_t>(index))));
+ //return SafeUMSerializableConvertGeneric(NativePtr->operator[](static_cast<System::Int32>(index)).ptr());
+ return (Serializable::GetManagedValueGeneric<TResult>(NativePtr->operator[](static_cast<System::Int32>(index))));
}
generic<class TResult>
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/ResultSet.hpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/ResultSet.hpp b/src/clicache/src/ResultSet.hpp
index 6b9269b..e4990cc 100644
--- a/src/clicache/src/ResultSet.hpp
+++ b/src/clicache/src/ResultSet.hpp
@@ -58,9 +58,9 @@ namespace Apache
/// <summary>
/// The size of the <c>ResultSet</c>.
/// </summary>
- virtual property int32_t Size
+ virtual property System::Int32 Size
{
- virtual int32_t get();
+ virtual System::Int32 get();
}
/// <summary>
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/Serializable.cpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/Serializable.cpp b/src/clicache/src/Serializable.cpp
index b95003c..0d27fbb 100644
--- a/src/clicache/src/Serializable.cpp
+++ b/src/clicache/src/Serializable.cpp
@@ -94,12 +94,12 @@ namespace Apache
return this;
}
- uint32_t Apache::Geode::Client::Serializable::ObjectSize::get()
+ System::UInt32 Apache::Geode::Client::Serializable::ObjectSize::get()
{
return NativePtr->objectSize();
}
- uint32_t Apache::Geode::Client::Serializable::ClassId::get()
+ System::UInt32 Apache::Geode::Client::Serializable::ClassId::get()
{
int8_t typeId = NativePtr->typeId();
if (typeId == apache::geode::client::GeodeTypeIdsImpl::CacheableUserData ||
@@ -178,32 +178,32 @@ namespace Apache
return (Apache::Geode::Client::Serializable^)CacheableFloatArray::Create(value);
}
- Apache::Geode::Client::Serializable::operator Apache::Geode::Client::Serializable ^ (int16_t value)
+ Apache::Geode::Client::Serializable::operator Apache::Geode::Client::Serializable ^ (System::Int16 value)
{
return (Apache::Geode::Client::Serializable^)CacheableInt16::Create(value);
}
- Apache::Geode::Client::Serializable::operator Apache::Geode::Client::Serializable ^ (array<int16_t>^ value)
+ Apache::Geode::Client::Serializable::operator Apache::Geode::Client::Serializable ^ (array<System::Int16>^ value)
{
return (Apache::Geode::Client::Serializable^)CacheableInt16Array::Create(value);
}
- Apache::Geode::Client::Serializable::operator Apache::Geode::Client::Serializable ^ (int32_t value)
+ Apache::Geode::Client::Serializable::operator Apache::Geode::Client::Serializable ^ (System::Int32 value)
{
return (Apache::Geode::Client::Serializable^)CacheableInt32::Create(value);
}
- Apache::Geode::Client::Serializable::operator Apache::Geode::Client::Serializable ^ (array<int32_t>^ value)
+ Apache::Geode::Client::Serializable::operator Apache::Geode::Client::Serializable ^ (array<System::Int32>^ value)
{
return (Apache::Geode::Client::Serializable^)CacheableInt32Array::Create(value);
}
- Apache::Geode::Client::Serializable::operator Apache::Geode::Client::Serializable ^ (int64_t value)
+ Apache::Geode::Client::Serializable::operator Apache::Geode::Client::Serializable ^ (System::Int64 value)
{
return (Apache::Geode::Client::Serializable^)CacheableInt64::Create(value);
}
- /*Apache::Geode::Client::*/Serializable::operator /*Apache::Geode::Client::*/Serializable ^ (array<int64_t>^ value)
+ /*Apache::Geode::Client::*/Serializable::operator /*Apache::Geode::Client::*/Serializable ^ (array<System::Int64>^ value)
{
return (Apache::Geode::Client::Serializable^)Apache::Geode::Client::CacheableInt64Array::Create(value);
}
@@ -218,13 +218,13 @@ namespace Apache
return (Apache::Geode::Client::Serializable^)CacheableStringArray::Create(value);
}
- int32_t Serializable::GetPDXIdForType(const char* poolName, IGeodeSerializable^ pdxType)
+ System::Int32 Serializable::GetPDXIdForType(const char* poolName, IGeodeSerializable^ pdxType)
{
apache::geode::client::CacheablePtr kPtr(SafeMSerializableConvertGeneric(pdxType));
return apache::geode::client::SerializationRegistry::GetPDXIdForType(poolName, kPtr);
}
- IGeodeSerializable^ Serializable::GetPDXTypeById(const char* poolName, int32_t typeId)
+ IGeodeSerializable^ Serializable::GetPDXTypeById(const char* poolName, System::Int32 typeId)
{
SerializablePtr sPtr = apache::geode::client::SerializationRegistry::GetPDXTypeById(poolName, typeId);
return SafeUMSerializableConvertGeneric(sPtr.ptr());
@@ -498,7 +498,7 @@ namespace Apache
//--------------------------------------------------------------
//adding user type as well in global builtin hashmap
- int64_t classId = ((int64_t)creationMethod()->ClassId);
+ System::Int64 classId = ((System::Int64)creationMethod()->ClassId);
if (!ManagedDelegatesGeneric->ContainsKey(classId))
ManagedDelegatesGeneric->Add(classId, creationMethod);
@@ -627,7 +627,7 @@ namespace Apache
return (TValue)(int8_t)safe_cast<int8_t>(Serializable::getByte(val));
}
else {
- return (TValue)(uint8_t)safe_cast<int8_t>(Serializable::getByte(val));
+ return (TValue)(System::Byte)safe_cast<int8_t>(Serializable::getByte(val));
}
return safe_cast<TValue>(Serializable::getByte(val));*/
}
@@ -658,30 +658,30 @@ namespace Apache
case apache::geode::client::GeodeTypeIds::CacheableInt16:
{
/* if (TValue::typeid == System::Int16::typeid) {
- return (TValue)(int16_t)safe_cast<int16_t>(Serializable::getInt16(val));
+ return (TValue)(System::Int16)safe_cast<System::Int16>(Serializable::getInt16(val));
}
else {
- return (TValue)(uint16_t)safe_cast<int16_t>(Serializable::getInt16(val));
+ return (TValue)(System::UInt16)safe_cast<System::Int16>(Serializable::getInt16(val));
}*/
return safe_cast<TValue>(Serializable::getInt16(val));
}
case apache::geode::client::GeodeTypeIds::CacheableInt32:
{
/* if (TValue::typeid == System::Int32::typeid) {
- return (TValue)(int32_t)safe_cast<int32_t>(Serializable::getInt32(val));
+ return (TValue)(System::Int32)safe_cast<System::Int32>(Serializable::getInt32(val));
}
else {
- return (TValue)(uint32_t)safe_cast<int32_t>(Serializable::getInt32(val));
+ return (TValue)(System::UInt32)safe_cast<System::Int32>(Serializable::getInt32(val));
} */
return safe_cast<TValue>(Serializable::getInt32(val));
}
case apache::geode::client::GeodeTypeIds::CacheableInt64:
{
/*if (TValue::typeid == System::Int64::typeid) {
- return (TValue)(int64_t)safe_cast<int64_t>(Serializable::getInt64(val));
+ return (TValue)(System::Int64)safe_cast<System::Int64>(Serializable::getInt64(val));
}
else {
- return (TValue)(uint64_t)safe_cast<int64_t>(Serializable::getInt64(val));
+ return (TValue)(System::UInt64)safe_cast<System::Int64>(Serializable::getInt64(val));
}*/
return safe_cast<TValue>(Serializable::getInt64(val));
}
@@ -1078,35 +1078,35 @@ namespace Apache
case apache::geode::client::GeodeTypeIds::CacheableInt16: {
/*if( managedType == System::Int16::typeid )
{
- return Serializable::getCacheableInt16((int16_t)key);
+ return Serializable::getCacheableInt16((System::Int16)key);
}
else
{
- return Serializable::getCacheableInt16((uint16_t)key);
+ return Serializable::getCacheableInt16((System::UInt16)key);
}*/
- return Serializable::getCacheableInt16((int16_t)key);
+ return Serializable::getCacheableInt16((System::Int16)key);
}
case apache::geode::client::GeodeTypeIds::CacheableInt32: {
/* if( managedType == System::Int32::typeid )
{
- return Serializable::getCacheableInt32((int32_t)key);
+ return Serializable::getCacheableInt32((System::Int32)key);
}
else
{
- return Serializable::getCacheableInt32((int32_t)key);
+ return Serializable::getCacheableInt32((System::Int32)key);
}*/
- return Serializable::getCacheableInt32((int32_t)key);
+ return Serializable::getCacheableInt32((System::Int32)key);
}
case apache::geode::client::GeodeTypeIds::CacheableInt64: {
/*if( managedType == System::Int64::typeid )
{
- return Serializable::getCacheableInt64((int64_t)key);
+ return Serializable::getCacheableInt64((System::Int64)key);
}
else
{
- return Serializable::getCacheableInt64((uint64_t)key);
+ return Serializable::getCacheableInt64((System::UInt64)key);
}*/
- return Serializable::getCacheableInt64((int64_t)key);
+ return Serializable::getCacheableInt64((System::Int64)key);
}
case apache::geode::client::GeodeTypeIds::CacheableBytes:
{
@@ -1140,7 +1140,7 @@ namespace Apache
return kPtr;
}
else {
- apache::geode::client::CacheablePtr kPtr(SafeGenericMSerializableConvert((IGeodeSerializable^)Apache::Geode::Client::CacheableInt16Array::Create(getInt16Array((array<uint16_t>^)key))));
+ apache::geode::client::CacheablePtr kPtr(SafeGenericMSerializableConvert((IGeodeSerializable^)Apache::Geode::Client::CacheableInt16Array::Create(getInt16Array((array<System::UInt16>^)key))));
return kPtr;
} */
}
@@ -1153,7 +1153,7 @@ namespace Apache
return kPtr;
}
else {
- apache::geode::client::CacheablePtr kPtr(SafeGenericMSerializableConvert((IGeodeSerializable^)Apache::Geode::Client::CacheableInt32Array::Create(getInt32Array((array<uint32_t>^)key))));
+ apache::geode::client::CacheablePtr kPtr(SafeGenericMSerializableConvert((IGeodeSerializable^)Apache::Geode::Client::CacheableInt32Array::Create(getInt32Array((array<System::UInt32>^)key))));
return kPtr;
} */
}
@@ -1166,7 +1166,7 @@ namespace Apache
return kPtr;
}
else {
- apache::geode::client::CacheablePtr kPtr(SafeGenericMSerializableConvert((IGeodeSerializable^)Apache::Geode::Client::CacheableInt64Array::Create(getInt64Array((array<uint64_t>^)key))));
+ apache::geode::client::CacheablePtr kPtr(SafeGenericMSerializableConvert((IGeodeSerializable^)Apache::Geode::Client::CacheableInt64Array::Create(getInt64Array((array<System::UInt64>^)key))));
return kPtr;
} */
}
@@ -1345,7 +1345,7 @@ namespace Apache
}
//int16
- int16_t Serializable::getInt16(apache::geode::client::SerializablePtr nativeptr)
+ System::Int16 Serializable::getInt16(apache::geode::client::SerializablePtr nativeptr)
{
apache::geode::client::CacheableInt16* ci = static_cast<apache::geode::client::CacheableInt16*>(nativeptr.ptr());
return ci->value();
@@ -1357,25 +1357,25 @@ namespace Apache
}
//int32
- int32_t Serializable::getInt32(apache::geode::client::SerializablePtr nativeptr)
+ System::Int32 Serializable::getInt32(apache::geode::client::SerializablePtr nativeptr)
{
apache::geode::client::CacheableInt32* ci = static_cast<apache::geode::client::CacheableInt32*>(nativeptr.ptr());
return ci->value();
}
- apache::geode::client::CacheableKeyPtr Serializable::getCacheableInt32(int32_t val)
+ apache::geode::client::CacheableKeyPtr Serializable::getCacheableInt32(System::Int32 val)
{
return apache::geode::client::CacheableInt32::create(val);
}
//int64
- int64_t Serializable::getInt64(apache::geode::client::SerializablePtr nativeptr)
+ System::Int64 Serializable::getInt64(apache::geode::client::SerializablePtr nativeptr)
{
apache::geode::client::CacheableInt64* ci = static_cast<apache::geode::client::CacheableInt64*>(nativeptr.ptr());
return ci->value();
}
- apache::geode::client::CacheableKeyPtr Serializable::getCacheableInt64(int64_t val)
+ apache::geode::client::CacheableKeyPtr Serializable::getCacheableInt64(System::Int64 val)
{
return apache::geode::client::CacheableInt64::create(val);
}
@@ -1444,7 +1444,7 @@ namespace Apache
if (value != nullptr) {
len = value->Length;
pin_ptr<const wchar_t> pin_value = PtrToStringChars(value);
- cStr = apache::geode::client::CacheableString::create(pin_value, static_cast<int32_t> (len));
+ cStr = apache::geode::client::CacheableString::create(pin_value, Convert::ToInt32(len));
}
else {
cStr = (apache::geode::client::CacheableString*)
@@ -1462,7 +1462,7 @@ namespace Apache
len = value->Length;
const char* chars =
(const char*)(Marshal::StringToHGlobalAnsi(value)).ToPointer();
- cStr = apache::geode::client::CacheableString::create(chars, static_cast<int32_t> (len));
+ cStr = apache::geode::client::CacheableString::create(chars, Convert::ToInt32(len));
Marshal::FreeHGlobal(IntPtr((void*)chars));
}
else {
@@ -1498,9 +1498,9 @@ namespace Apache
return dArray;
}
- array<int16_t>^ Serializable::getInt16Array(array<uint16_t>^ sArray)
+ array<System::Int16>^ Serializable::getInt16Array(array<System::UInt16>^ sArray)
{
- array<int16_t>^ dArray = gcnew array<int16_t>(sArray->Length);
+ array<System::Int16>^ dArray = gcnew array<System::Int16>(sArray->Length);
for (int index = 0; index < dArray->Length; index++)
{
dArray[index] = sArray[index];
@@ -1508,9 +1508,9 @@ namespace Apache
return dArray;
}
- array<int32_t>^ Serializable::getInt32Array(array<uint32_t>^ sArray)
+ array<System::Int32>^ Serializable::getInt32Array(array<System::UInt32>^ sArray)
{
- array<int32_t>^ dArray = gcnew array<int32_t>(sArray->Length);
+ array<System::Int32>^ dArray = gcnew array<System::Int32>(sArray->Length);
for (int index = 0; index < dArray->Length; index++)
{
dArray[index] = sArray[index];
@@ -1518,9 +1518,9 @@ namespace Apache
return dArray;
}
- array<int64_t>^ Serializable::getInt64Array(array<uint64_t>^ sArray)
+ array<System::Int64>^ Serializable::getInt64Array(array<System::UInt64>^ sArray)
{
- array<int64_t>^ dArray = gcnew array<int64_t>(sArray->Length);
+ array<System::Int64>^ dArray = gcnew array<System::Int64>(sArray->Length);
for (int index = 0; index < dArray->Length; index++)
{
dArray[index] = sArray[index];
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/Serializable.hpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/Serializable.hpp b/src/clicache/src/Serializable.hpp
index 5b67491..c7f5b44 100644
--- a/src/clicache/src/Serializable.hpp
+++ b/src/clicache/src/Serializable.hpp
@@ -110,9 +110,9 @@ namespace Apache
/// <summary>
/// return the size of this object in bytes
/// </summary>
- virtual property uint32_t ObjectSize
+ virtual property System::UInt32 ObjectSize
{
- virtual uint32_t get();
+ virtual System::UInt32 get();
}
/// <summary>
@@ -121,9 +121,9 @@ namespace Apache
/// type to create and deserialize into.
/// </summary>
/// <returns>the classId</returns>
- virtual property uint32_t ClassId
+ virtual property System::UInt32 ClassId
{
- virtual uint32_t get();
+ virtual System::UInt32 get();
}
/// <summary>
@@ -188,7 +188,7 @@ namespace Apache
/// Implicit conversion operator from a 16-bit integer
/// to a <c>Serializable</c>.
/// </summary>
- static operator Apache::Geode::Client::Serializable^ (int16_t value);
+ static operator Apache::Geode::Client::Serializable^ (System::Int16 value);
/// <summary>
/// Implicit conversion operator from a character
@@ -206,31 +206,31 @@ namespace Apache
/// Implicit conversion operator from a 16-bit integer array
/// to a <c>Serializable</c>.
/// </summary>
- static operator Apache::Geode::Client::Serializable^ (array<int16_t>^ value);
+ static operator Apache::Geode::Client::Serializable^ (array<System::Int16>^ value);
/// <summary>
/// Implicit conversion operator from a 32-bit integer
/// to a <c>Serializable</c>.
/// </summary>
- static operator Apache::Geode::Client::Serializable^ (int32_t value);
+ static operator Apache::Geode::Client::Serializable^ (System::Int32 value);
/// <summary>
/// Implicit conversion operator from a 32-bit integer array
/// to a <c>Serializable</c>.
/// </summary>
- static operator Apache::Geode::Client::Serializable^ (array<int32_t>^ value);
+ static operator Apache::Geode::Client::Serializable^ (array<System::Int32>^ value);
/// <summary>
/// Implicit conversion operator from a 64-bit integer
/// to a <c>Serializable</c>.
/// </summary>
- static operator /*Apache::Geode::Client::*/Serializable^ (int64_t value);
+ static operator /*Apache::Geode::Client::*/Serializable^ (System::Int64 value);
/// <summary>
/// Implicit conversion operator from a 64-bit integer array
/// to a <c>Serializable</c>.
/// </summary>
- static operator Apache::Geode::Client::Serializable^ (array<int64_t>^ value);
+ static operator Apache::Geode::Client::Serializable^ (array<System::Int64>^ value);
/// <summary>
/// Implicit conversion operator from a string
@@ -295,8 +295,8 @@ namespace Apache
internal:
- static int32_t GetPDXIdForType(const char* poolName, IGeodeSerializable^ pdxType);
- static IGeodeSerializable^ GetPDXTypeById(const char* poolName, int32_t typeId);
+ static System::Int32 GetPDXIdForType(const char* poolName, IGeodeSerializable^ pdxType);
+ static IGeodeSerializable^ GetPDXTypeById(const char* poolName, System::Int32 typeId);
static IPdxSerializable^ Serializable::GetPdxType(String^ className);
static void RegisterPDXManagedCacheableKey(bool appDomainEnable);
static bool IsObjectAndPdxSerializerRegistered(String^ className);
@@ -344,19 +344,19 @@ namespace Apache
static apache::geode::client::CacheableKeyPtr getCacheableFloat(float val);
//int16
- static int16_t getInt16(apache::geode::client::SerializablePtr nativeptr);
+ static System::Int16 getInt16(apache::geode::client::SerializablePtr nativeptr);
static apache::geode::client::CacheableKeyPtr getCacheableInt16(int val);
//int32
- static int32_t getInt32(apache::geode::client::SerializablePtr nativeptr);
+ static System::Int32 getInt32(apache::geode::client::SerializablePtr nativeptr);
- static apache::geode::client::CacheableKeyPtr getCacheableInt32(int32_t val);
+ static apache::geode::client::CacheableKeyPtr getCacheableInt32(System::Int32 val);
//int64
- static int64_t getInt64(apache::geode::client::SerializablePtr nativeptr);
+ static System::Int64 getInt64(apache::geode::client::SerializablePtr nativeptr);
- static apache::geode::client::CacheableKeyPtr getCacheableInt64(int64_t val);
+ static apache::geode::client::CacheableKeyPtr getCacheableInt64(System::Int64 val);
//cacheable ascii string
static String^ getASCIIString(apache::geode::client::SerializablePtr nativeptr);
@@ -404,11 +404,11 @@ namespace Apache
static array<Byte>^ getSByteArray(array<SByte>^ sArray);
- static array<int16_t>^ getInt16Array(array<uint16_t>^ sArray);
+ static array<System::Int16>^ getInt16Array(array<System::UInt16>^ sArray);
- static array<int32_t>^ getInt32Array(array<uint32_t>^ sArray);
+ static array<System::Int32>^ getInt32Array(array<System::UInt32>^ sArray);
- static array<int64_t>^ getInt64Array(array<uint64_t>^ sArray);
+ static array<System::Int64>^ getInt64Array(array<System::UInt64>^ sArray);
/// <summary>
@@ -539,13 +539,13 @@ namespace Apache
/// Static map of <c>TypeFactoryMethod</c> delegates created
/// for managed <c>TypeFactoryMethod</c> delegates.
/// </summary>
- static Dictionary<int64_t, TypeFactoryMethodGeneric^>^ ManagedDelegatesGeneric =
- gcnew Dictionary<int64_t, TypeFactoryMethodGeneric^>();
+ static Dictionary<System::Int64, TypeFactoryMethodGeneric^>^ ManagedDelegatesGeneric =
+ gcnew Dictionary<System::Int64, TypeFactoryMethodGeneric^>();
/// <summary>
/// This is to get manged delegates.
/// </summary>
- static TypeFactoryMethodGeneric^ GetManagedDelegateGeneric(int64_t typeId)
+ static TypeFactoryMethodGeneric^ GetManagedDelegateGeneric(System::Int64 typeId)
{
TypeFactoryMethodGeneric^ ret = nullptr;
ManagedDelegatesGeneric->TryGetValue(typeId, ret);
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/StatisticDescriptor.cpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/StatisticDescriptor.cpp b/src/clicache/src/StatisticDescriptor.cpp
index 87eb2ba..0731102 100644
--- a/src/clicache/src/StatisticDescriptor.cpp
+++ b/src/clicache/src/StatisticDescriptor.cpp
@@ -29,7 +29,7 @@ namespace Apache
namespace Client
{
- int32_t StatisticDescriptor::ID::get( )
+ System::Int32 StatisticDescriptor::ID::get( )
{
return NativePtr->getId();
}
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/StatisticDescriptor.hpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/StatisticDescriptor.hpp b/src/clicache/src/StatisticDescriptor.hpp
index 2851bb7..fdd06cf 100644
--- a/src/clicache/src/StatisticDescriptor.hpp
+++ b/src/clicache/src/StatisticDescriptor.hpp
@@ -51,9 +51,9 @@ namespace Apache
/// The id is initialized when its statistics
/// type is created.
/// </summary>
- virtual property int32_t ID
+ virtual property System::Int32 ID
{
- virtual int32_t get();
+ virtual System::Int32 get();
}
/// <summary>
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/Statistics.cpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/Statistics.cpp b/src/clicache/src/Statistics.cpp
index 41d9e96..ce00f17 100644
--- a/src/clicache/src/Statistics.cpp
+++ b/src/clicache/src/Statistics.cpp
@@ -41,7 +41,7 @@ namespace Apache
_GF_MG_EXCEPTION_CATCH_ALL2/* due to auto replace */
}
- int32_t Statistics::NameToId(String^ name)
+ System::Int32 Statistics::NameToId(String^ name)
{
ManagedString mg_name( name );
_GF_MG_EXCEPTION_TRY2/* due to auto replace */
@@ -57,7 +57,7 @@ namespace Apache
_GF_MG_EXCEPTION_CATCH_ALL2/* due to auto replace */
}
- int64_t Statistics::UniqueId::get( )
+ System::Int64 Statistics::UniqueId::get( )
{
return NativePtr->getUniqueId();
}
@@ -72,7 +72,7 @@ namespace Apache
return ManagedString::Get(NativePtr->getTextId());
}
- int64_t Statistics::NumericId::get()
+ System::Int64 Statistics::NumericId::get()
{
return NativePtr->getNumericId();
}
@@ -89,14 +89,14 @@ namespace Apache
return NativePtr->isClosed();
}
- void Statistics::SetInt(int32_t id, int32_t value)
+ void Statistics::SetInt(System::Int32 id, System::Int32 value)
{
_GF_MG_EXCEPTION_TRY2/* due to auto replace */
NativePtr->setInt(id, value);
_GF_MG_EXCEPTION_CATCH_ALL2/* due to auto replace */
}
- void Statistics::SetInt(String^ name, int32_t value)
+ void Statistics::SetInt(String^ name, System::Int32 value)
{
ManagedString mg_name( name );
_GF_MG_EXCEPTION_TRY2/* due to auto replace */
@@ -104,28 +104,28 @@ namespace Apache
_GF_MG_EXCEPTION_CATCH_ALL2/* due to auto replace */
}
- void Statistics::SetInt(StatisticDescriptor^ descriptor, int32_t value)
+ void Statistics::SetInt(StatisticDescriptor^ descriptor, System::Int32 value)
{
_GF_MG_EXCEPTION_TRY2/* due to auto replace */
NativePtr->setInt(GetNativePtr<apache::geode::statistics::StatisticDescriptor>(descriptor),value);
_GF_MG_EXCEPTION_CATCH_ALL2/* due to auto replace */
}
- void Statistics::SetLong(int32_t id, int64_t value)
+ void Statistics::SetLong(System::Int32 id, System::Int64 value)
{
_GF_MG_EXCEPTION_TRY2/* due to auto replace */
NativePtr->setLong(id, value);
_GF_MG_EXCEPTION_CATCH_ALL2/* due to auto replace */
}
- void Statistics::SetLong(StatisticDescriptor^ descriptor, int64_t value)
+ void Statistics::SetLong(StatisticDescriptor^ descriptor, System::Int64 value)
{
_GF_MG_EXCEPTION_TRY2/* due to auto replace */
NativePtr->setLong(GetNativePtr<apache::geode::statistics::StatisticDescriptor>(descriptor),value);
_GF_MG_EXCEPTION_CATCH_ALL2/* due to auto replace */
}
- void Statistics::SetLong(String^ name, int64_t value)
+ void Statistics::SetLong(String^ name, System::Int64 value)
{
ManagedString mg_name( name );
_GF_MG_EXCEPTION_TRY2/* due to auto replace */
@@ -133,7 +133,7 @@ namespace Apache
_GF_MG_EXCEPTION_CATCH_ALL2/* due to auto replace */
}
- void Statistics::SetDouble(int32_t id, double value)
+ void Statistics::SetDouble(System::Int32 id, double value)
{
_GF_MG_EXCEPTION_TRY2/* due to auto replace */
NativePtr->setDouble(id, value);
@@ -155,21 +155,21 @@ namespace Apache
_GF_MG_EXCEPTION_CATCH_ALL2/* due to auto replace */
}
- int32_t Statistics::GetInt(int32_t id)
+ System::Int32 Statistics::GetInt(System::Int32 id)
{
_GF_MG_EXCEPTION_TRY2/* due to auto replace */
return NativePtr->getInt(id);
_GF_MG_EXCEPTION_CATCH_ALL2/* due to auto replace */
}
- int32_t Statistics::GetInt(StatisticDescriptor^ descriptor)
+ System::Int32 Statistics::GetInt(StatisticDescriptor^ descriptor)
{
_GF_MG_EXCEPTION_TRY2/* due to auto replace */
return NativePtr->getInt(GetNativePtr<apache::geode::statistics::StatisticDescriptor>(descriptor));
_GF_MG_EXCEPTION_CATCH_ALL2/* due to auto replace */
}
- int32_t Statistics::GetInt(String^ name)
+ System::Int32 Statistics::GetInt(String^ name)
{
ManagedString mg_name( name );
_GF_MG_EXCEPTION_TRY2/* due to auto replace */
@@ -177,20 +177,20 @@ namespace Apache
_GF_MG_EXCEPTION_CATCH_ALL2/* due to auto replace */
}
- int64_t Statistics::GetLong(int32_t id)
+ System::Int64 Statistics::GetLong(System::Int32 id)
{
_GF_MG_EXCEPTION_TRY2/* due to auto replace */
return NativePtr->getLong(id);
_GF_MG_EXCEPTION_CATCH_ALL2/* due to auto replace */
}
- int64_t Statistics::GetLong(StatisticDescriptor^ descriptor)
+ System::Int64 Statistics::GetLong(StatisticDescriptor^ descriptor)
{
_GF_MG_EXCEPTION_TRY2/* due to auto replace */
return NativePtr->getLong(GetNativePtr<apache::geode::statistics::StatisticDescriptor>(descriptor));
_GF_MG_EXCEPTION_CATCH_ALL2/* due to auto replace */
}
- int64_t Statistics::GetLong(String^ name)
+ System::Int64 Statistics::GetLong(String^ name)
{
ManagedString mg_name( name );
_GF_MG_EXCEPTION_TRY2/* due to auto replace */
@@ -198,7 +198,7 @@ namespace Apache
_GF_MG_EXCEPTION_CATCH_ALL2/* due to auto replace */
}
- double Statistics::GetDouble(int32_t id)
+ double Statistics::GetDouble(System::Int32 id)
{
_GF_MG_EXCEPTION_TRY2/* due to auto replace */
return NativePtr->getDouble(id);
@@ -220,28 +220,28 @@ namespace Apache
_GF_MG_EXCEPTION_CATCH_ALL2/* due to auto replace */
}
- int64_t Statistics::GetRawBits(StatisticDescriptor^ descriptor)
+ System::Int64 Statistics::GetRawBits(StatisticDescriptor^ descriptor)
{
_GF_MG_EXCEPTION_TRY2/* due to auto replace */
return NativePtr->getRawBits(GetNativePtr<apache::geode::statistics::StatisticDescriptor>(descriptor));
_GF_MG_EXCEPTION_CATCH_ALL2/* due to auto replace */
}
- int32_t Statistics::IncInt(int32_t id, int32_t delta)
+ System::Int32 Statistics::IncInt(System::Int32 id, System::Int32 delta)
{
_GF_MG_EXCEPTION_TRY2/* due to auto replace */
return NativePtr->incInt(id,delta);
_GF_MG_EXCEPTION_CATCH_ALL2/* due to auto replace */
}
- int32_t Statistics::IncInt(StatisticDescriptor^ descriptor, int32_t delta)
+ System::Int32 Statistics::IncInt(StatisticDescriptor^ descriptor, System::Int32 delta)
{
_GF_MG_EXCEPTION_TRY2/* due to auto replace */
return NativePtr->incInt(GetNativePtr<apache::geode::statistics::StatisticDescriptor>(descriptor),delta);
_GF_MG_EXCEPTION_CATCH_ALL2/* due to auto replace */
}
- int32_t Statistics::IncInt(String^ name, int32_t delta)
+ System::Int32 Statistics::IncInt(String^ name, System::Int32 delta)
{
ManagedString mg_name( name );
_GF_MG_EXCEPTION_TRY2/* due to auto replace */
@@ -249,21 +249,21 @@ namespace Apache
_GF_MG_EXCEPTION_CATCH_ALL2/* due to auto replace */
}
- int64_t Statistics::IncLong(int32_t id, int64_t delta)
+ System::Int64 Statistics::IncLong(System::Int32 id, System::Int64 delta)
{
_GF_MG_EXCEPTION_TRY2/* due to auto replace */
return NativePtr->incLong(id,delta);
_GF_MG_EXCEPTION_CATCH_ALL2/* due to auto replace */
}
- int64_t Statistics::IncLong(StatisticDescriptor^ descriptor, int64_t delta)
+ System::Int64 Statistics::IncLong(StatisticDescriptor^ descriptor, System::Int64 delta)
{
_GF_MG_EXCEPTION_TRY2/* due to auto replace */
return NativePtr->incLong(GetNativePtr<apache::geode::statistics::StatisticDescriptor>(descriptor),delta);
_GF_MG_EXCEPTION_CATCH_ALL2/* due to auto replace */
}
- int64_t Statistics::IncLong(String^ name, int64_t delta)
+ System::Int64 Statistics::IncLong(String^ name, System::Int64 delta)
{
ManagedString mg_name( name );
_GF_MG_EXCEPTION_TRY2/* due to auto replace */
@@ -271,7 +271,7 @@ namespace Apache
_GF_MG_EXCEPTION_CATCH_ALL2/* due to auto replace */
}
- double Statistics::IncDouble(int32_t id, double delta)
+ double Statistics::IncDouble(System::Int32 id, double delta)
{
_GF_MG_EXCEPTION_TRY2/* due to auto replace */
return NativePtr->incDouble(id,delta);
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/Statistics.hpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/Statistics.hpp b/src/clicache/src/Statistics.hpp
index 770070a..74d44b3 100644
--- a/src/clicache/src/Statistics.hpp
+++ b/src/clicache/src/Statistics.hpp
@@ -68,7 +68,7 @@ namespace Apache
/// statistics instance.
/// </exception>
/// <see cref="StatisticsType#nameToDescriptor" />
- virtual int32_t NameToId(String^ name);
+ virtual System::Int32 NameToId(String^ name);
/// <summary>
/// Returns the descriptor of the statistic with the given name in this
@@ -86,9 +86,9 @@ namespace Apache
/// <summary>
/// Gets a value that uniquely identifies this statistics.
/// </summary>
- virtual property int64_t UniqueId
+ virtual property System::Int64 UniqueId
{
- virtual int64_t get( );
+ virtual System::Int64 get( );
}
/// <summary>
@@ -110,9 +110,9 @@ namespace Apache
/// <summary>
/// Gets the number associated with this instance that helps identify it.
/// </summary>
- virtual property int64_t NumericId
+ virtual property System::Int64 NumericId
{
- virtual int64_t get( );
+ virtual System::Int64 get( );
}
/// <summary>
@@ -161,7 +161,7 @@ namespace Apache
/// <exception cref="IllegalArgumentException">
/// If the id is invalid.
/// </exception>
- virtual void SetInt(int32_t id, int32_t value);
+ virtual void SetInt(System::Int32 id, System::Int32 value);
/// <summary>
/// Sets the value of a named statistic of type <c>int</c>
@@ -173,7 +173,7 @@ namespace Apache
/// if the statistic with name <c>name</c> is not of
/// type <c>int</c>.
/// </exception>
- virtual void SetInt(String^ name, int32_t value);
+ virtual void SetInt(String^ name, System::Int32 value);
/// <summary>
/// Sets the value of a described statistic of type <c>int</c>
@@ -186,7 +186,7 @@ namespace Apache
/// if the described statistic is not of
/// type <c>int</c>.
/// </exception>
- virtual void SetInt(StatisticDescriptor^ descriptor, int32_t value);
+ virtual void SetInt(StatisticDescriptor^ descriptor, System::Int32 value);
/// <summary>
/// Sets the value of a statistic with the given <c>id</c>
@@ -198,7 +198,7 @@ namespace Apache
/// <exception cref="IllegalArgumentException">
/// If the id is invalid.
/// </exception>
- virtual void SetLong(int32_t id, int64_t value);
+ virtual void SetLong(System::Int32 id, System::Int64 value);
/// <summary>
/// Sets the value of a described statistic of type <c>long</c>
@@ -211,7 +211,7 @@ namespace Apache
/// if the described statistic is not of
/// type <c>long</c>.
/// </exception>
- virtual void SetLong(StatisticDescriptor^ descriptor, int64_t value);
+ virtual void SetLong(StatisticDescriptor^ descriptor, System::Int64 value);
/// <summary>
/// Sets the value of a named statistic of type <c>long</c>.
@@ -223,7 +223,7 @@ namespace Apache
/// if the statistic with name <c>name</c> is not of
/// type <c>long</c>.
/// </exception>
- virtual void SetLong(String^ name, int64_t value);
+ virtual void SetLong(String^ name, System::Int64 value);
/// <summary>
@@ -236,7 +236,7 @@ namespace Apache
/// <exception cref="IllegalArgumentException">
/// If the id is invalid.
/// </exception>
- virtual void SetDouble(int32_t id, double value);
+ virtual void SetDouble(System::Int32 id, double value);
/// <summary>
/// Sets the value of a named statistic of type <c>double</c>
@@ -272,7 +272,7 @@ namespace Apache
/// <exception cref="IllegalArgumentException">
/// If the id is invalid.
/// </exception>
- virtual int32_t GetInt(int32_t id);
+ virtual System::Int32 GetInt(System::Int32 id);
/// <summary>
/// Returns the value of the described statistic of type <code>int</code>.
@@ -284,7 +284,7 @@ namespace Apache
/// if the described statistic is not of
/// type <c>int</c>.
/// </exception>
- virtual int32_t GetInt(StatisticDescriptor^ descriptor);
+ virtual System::Int32 GetInt(StatisticDescriptor^ descriptor);
/// <summary>
@@ -297,7 +297,7 @@ namespace Apache
/// if the statistic with name <c>name</c> is not of
/// type <c>int</c>.
/// </exception>
- virtual int32_t GetInt(String^ name);
+ virtual System::Int32 GetInt(String^ name);
/// <summary>
/// Returns the value of the identified statistic of type <c>long</c>.
@@ -307,7 +307,7 @@ namespace Apache
/// <exception cref="IllegalArgumentException">
/// If the id is invalid.
/// </exception>
- virtual int64_t GetLong(int32_t id);
+ virtual System::Int64 GetLong(System::Int32 id);
/// <summary>
@@ -320,7 +320,7 @@ namespace Apache
/// if the described statistic is not of
/// type <c>long</c>.
/// </exception>
- virtual int64_t GetLong(StatisticDescriptor^ descriptor);
+ virtual System::Int64 GetLong(StatisticDescriptor^ descriptor);
/// <summary>
@@ -333,7 +333,7 @@ namespace Apache
/// if the statistic with name <c>name</c> is not of
/// type <c>long</c>.
/// </exception>
- virtual int64_t GetLong(String^ name);
+ virtual System::Int64 GetLong(String^ name);
/// <summary>
@@ -344,7 +344,7 @@ namespace Apache
/// <exception cref="IllegalArgumentException">
/// If the id is invalid.
/// </exception>
- virtual double GetDouble(int32_t id);
+ virtual double GetDouble(System::Int32 id);
/// <summary>
/// Returns the value of the described statistic of type <c>double</c>.
@@ -378,7 +378,7 @@ namespace Apache
/// <exception cref="IllegalArgumentException">
/// If the described statistic does not exist
/// </exception>
- virtual int64_t GetRawBits(StatisticDescriptor^ descriptor);
+ virtual System::Int64 GetRawBits(StatisticDescriptor^ descriptor);
/// <summary>
/// Increments the value of the identified statistic of type <c>int</c>
@@ -391,7 +391,7 @@ namespace Apache
/// <exception cref="IllegalArgumentException">
/// If the id is invalid.
/// </exception>
- virtual int32_t IncInt(int32_t id, int32_t delta);
+ virtual System::Int32 IncInt(System::Int32 id, System::Int32 delta);
/// <summary>
/// Increments the value of the described statistic of type <c>int</c>
@@ -406,7 +406,7 @@ namespace Apache
/// if the described statistic is not of
/// type <c>int</c>.
/// </exception>
- virtual int32_t IncInt(StatisticDescriptor^ descriptor, int32_t delta);
+ virtual System::Int32 IncInt(StatisticDescriptor^ descriptor, System::Int32 delta);
/// <summary>
/// Increments the value of the statistic of type <c>int</c> with
@@ -420,7 +420,7 @@ namespace Apache
/// if the statistic with name <c>name</c> is not of
/// type <c>int</c>.
/// </exception>
- virtual int32_t IncInt(String^ name, int32_t delta);
+ virtual System::Int32 IncInt(String^ name, System::Int32 delta);
/// <summary>
/// Increments the value of the identified statistic of type <c>long</c>
@@ -433,7 +433,7 @@ namespace Apache
/// <exception cref="IllegalArgumentException">
/// If the id is invalid.
/// </exception>
- virtual int64_t IncLong(int32_t id, int64_t delta);
+ virtual System::Int64 IncLong(System::Int32 id, System::Int64 delta);
/// <summary>
@@ -449,7 +449,7 @@ namespace Apache
/// if the described statistic is not of
/// type <c>long</c>.
/// </exception>
- virtual int64_t IncLong(StatisticDescriptor^ descriptor, int64_t delta);
+ virtual System::Int64 IncLong(StatisticDescriptor^ descriptor, System::Int64 delta);
/// <summary>
/// Increments the value of the statistic of type <c>long</c> with
@@ -463,7 +463,7 @@ namespace Apache
/// if the statistic with name <c>name</c> is not of
/// type <c>long</c>.
/// </exception>
- virtual int64_t IncLong(String^ name, int64_t delta);
+ virtual System::Int64 IncLong(String^ name, System::Int64 delta);
/// <summary>
@@ -477,7 +477,7 @@ namespace Apache
/// <exception cref="IllegalArgumentException">
/// If the id is invalid.
/// </exception>
- virtual double IncDouble(int32_t id, double delta);
+ virtual double IncDouble(System::Int32 id, double delta);
/// <summary>
/// Increments the value of the described statistic of type <c>double</c>
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/StatisticsFactory.cpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/StatisticsFactory.cpp b/src/clicache/src/StatisticsFactory.cpp
index 73b7ba5..d07e943 100644
--- a/src/clicache/src/StatisticsFactory.cpp
+++ b/src/clicache/src/StatisticsFactory.cpp
@@ -148,14 +148,14 @@ namespace Apache
}
StatisticsType^ StatisticsFactory::CreateType( String^ name, String^ description,
- array<StatisticDescriptor^>^ stats, int32_t statsLength)
+ array<StatisticDescriptor^>^ stats, System::Int32 statsLength)
{
ManagedString mg_name( name );
ManagedString mg_description( description );
_GF_MG_EXCEPTION_TRY2/* due to auto replace */
apache::geode::statistics::StatisticDescriptor ** nativedescriptors = new apache::geode::statistics::StatisticDescriptor*[statsLength];
- for (int32_t index = 0; index < statsLength; index++)
+ for (System::Int32 index = 0; index < statsLength; index++)
{
nativedescriptors[index] = GetNativePtr<apache::geode::statistics::StatisticDescriptor>(stats[index]);
}
@@ -193,7 +193,7 @@ namespace Apache
_GF_MG_EXCEPTION_CATCH_ALL2/* due to auto replace */
}
- Statistics^ StatisticsFactory::CreateStatistics(StatisticsType^ type, String^ textId, int64_t numericId)
+ Statistics^ StatisticsFactory::CreateStatistics(StatisticsType^ type, String^ textId, System::Int64 numericId)
{
ManagedString mg_text( textId );
_GF_MG_EXCEPTION_TRY2/* due to auto replace */
@@ -222,7 +222,7 @@ namespace Apache
_GF_MG_EXCEPTION_CATCH_ALL2/* due to auto replace */
}
- Statistics^ StatisticsFactory::CreateAtomicStatistics(StatisticsType^ type, String^ textId, int64_t numericId)
+ Statistics^ StatisticsFactory::CreateAtomicStatistics(StatisticsType^ type, String^ textId, System::Int64 numericId)
{
ManagedString mg_text( textId );
_GF_MG_EXCEPTION_TRY2/* due to auto replace */
@@ -245,7 +245,7 @@ namespace Apache
return ManagedString::Get( NativePtr->getName() );
}
- int64_t StatisticsFactory::ID::get( )
+ System::Int64 StatisticsFactory::ID::get( )
{
return NativePtr->getId();
} // namespace Client
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/StatisticsFactory.hpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/StatisticsFactory.hpp b/src/clicache/src/StatisticsFactory.hpp
index 38b2a38..341b9a5 100644
--- a/src/clicache/src/StatisticsFactory.hpp
+++ b/src/clicache/src/StatisticsFactory.hpp
@@ -159,7 +159,7 @@ namespace Apache
/// if a type with the given <c>name</c> already exists.
/// </exception>
virtual StatisticsType^ CreateType(String^ name, String^ description,
- array<StatisticDescriptor^>^ stats, int32_t statsLength);
+ array<StatisticDescriptor^>^ stats, System::Int32 statsLength);
/// <summary>
/// Finds and returns an already created <see cref="StatisticsType" />
@@ -189,7 +189,7 @@ namespace Apache
/// <para>
/// The created instance may not be <see cref="Statistics#isAtomic" /> atomic.
/// </para>
- virtual Statistics^ CreateStatistics(StatisticsType^ type, String^ textId, int64_t numericId);
+ virtual Statistics^ CreateStatistics(StatisticsType^ type, String^ textId, System::Int64 numericId);
/// <summary>
/// Creates and returns a <see cref="Statistics" /> instance of the given <see cref="StatisticsType" /> type, <c>textId</c>, and with default ids.
@@ -213,7 +213,7 @@ namespace Apache
/// <para>
/// The created instance will be <see cref="Statistics#isAtomic" /> atomic.
/// </para>
- virtual Statistics^ CreateAtomicStatistics(StatisticsType^ type, String^ textId, int64_t numericId);
+ virtual Statistics^ CreateAtomicStatistics(StatisticsType^ type, String^ textId, System::Int64 numericId);
/// <summary>
/// Return the first instance that matches the type, or NULL
@@ -231,9 +231,9 @@ namespace Apache
/// <summary>
/// Returns a numeric id that can be used to identify the manager
/// </summary>
- virtual property int64_t ID
+ virtual property System::Int64 ID
{
- virtual int64_t get();
+ virtual System::Int64 get();
}
internal:
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/StatisticsType.cpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/StatisticsType.cpp b/src/clicache/src/StatisticsType.cpp
index 5f88537..24722c7 100644
--- a/src/clicache/src/StatisticsType.cpp
+++ b/src/clicache/src/StatisticsType.cpp
@@ -58,7 +58,7 @@ namespace Apache
_GF_MG_EXCEPTION_CATCH_ALL2/* due to auto replace */
}
- int32_t StatisticsType::NameToId( String^ name )
+ System::Int32 StatisticsType::NameToId( String^ name )
{
ManagedString mg_name( name );
_GF_MG_EXCEPTION_TRY2/* due to auto replace */
@@ -74,7 +74,7 @@ namespace Apache
_GF_MG_EXCEPTION_CATCH_ALL2/* due to auto replace */
}
- int32_t StatisticsType::DescriptorsCount::get()
+ System::Int32 StatisticsType::DescriptorsCount::get()
{
return NativePtr->getDescriptorsCount();
} // namespace Client
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/StatisticsType.hpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/StatisticsType.hpp b/src/clicache/src/StatisticsType.hpp
index 28bc70f..dce3f65 100644
--- a/src/clicache/src/StatisticsType.hpp
+++ b/src/clicache/src/StatisticsType.hpp
@@ -85,7 +85,7 @@ namespace Apache
/// if no statistic named <c>name</c> exists in this
/// statistic instance.
/// </exception>
- virtual int32_t NameToId(String^ name);
+ virtual System::Int32 NameToId(String^ name);
/// <summary>
/// Returns the descriptor of the statistic with the given name in this
@@ -102,9 +102,9 @@ namespace Apache
/// <summary>
/// Returns the total number of statistics descriptors in the type.
/// </summary>
- virtual property int32_t DescriptorsCount
+ virtual property System::Int32 DescriptorsCount
{
- virtual int32_t get( );
+ virtual System::Int32 get( );
}
internal:
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/Struct.cpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/Struct.cpp b/src/clicache/src/Struct.cpp
index 6944f45..297ca6a 100644
--- a/src/clicache/src/Struct.cpp
+++ b/src/clicache/src/Struct.cpp
@@ -34,9 +34,9 @@ namespace Apache
Object^ Struct::default::get( size_t index )
{
/* return SafeUMSerializableConvertGeneric(static_cast<apache::geode::client::Struct*>(
- NativePtr())->operator[](static_cast<int32_t>(index)).ptr());*/
+ NativePtr())->operator[](static_cast<System::Int32>(index)).ptr());*/
return (Serializable::GetManagedValueGeneric<Object^>(static_cast<apache::geode::client::Struct*>(
- NativePtr())->operator[](static_cast<int32_t>(index))));
+ NativePtr())->operator[](static_cast<System::Int32>(index))));
}
Object^ Struct::default::get( String^ fieldName )
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/StructSet.cpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/StructSet.cpp b/src/clicache/src/StructSet.cpp
index 1084d9e..1922ffe 100644
--- a/src/clicache/src/StructSet.cpp
+++ b/src/clicache/src/StructSet.cpp
@@ -37,7 +37,7 @@ namespace Apache
}
generic<class TResult>
- int32_t StructSet<TResult>::Size::get( )
+ System::Int32 StructSet<TResult>::Size::get( )
{
return NativePtr->size( );
}
@@ -45,8 +45,8 @@ namespace Apache
generic<class TResult>
/*Apache::Geode::Client::IGeodeSerializable^*/ TResult StructSet<TResult>::default::get( size_t index )
{
- //return SafeUMSerializableConvertGeneric((NativePtr->operator[](static_cast<int32_t>(index))).ptr());
- return Serializable::GetManagedValueGeneric<TResult>((NativePtr->operator[](static_cast<int32_t>(index))));
+ //return SafeUMSerializableConvertGeneric((NativePtr->operator[](static_cast<System::Int32>(index))).ptr());
+ return Serializable::GetManagedValueGeneric<TResult>((NativePtr->operator[](static_cast<System::Int32>(index))));
}
generic<class TResult>
@@ -85,7 +85,7 @@ namespace Apache
generic<class TResult>
String^ StructSet<TResult>::GetFieldName( size_t index )
{
- return ManagedString::Get( NativePtr->getFieldName( static_cast<int32_t> (index) ) );
+ return ManagedString::Get( NativePtr->getFieldName( static_cast<System::Int32> (index) ) );
} // namespace Client
} // namespace Geode
} // namespace Apache
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/StructSet.hpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/StructSet.hpp b/src/clicache/src/StructSet.hpp
index 852fbdf..3ca6de2 100644
--- a/src/clicache/src/StructSet.hpp
+++ b/src/clicache/src/StructSet.hpp
@@ -61,9 +61,9 @@ namespace Apache
/// <returns>
/// the number of items in the <c>StructSet</c>.
/// </returns>
- virtual property int32_t Size
+ virtual property System::Int32 Size
{
- virtual int32_t get( );
+ virtual System::Int32 get( );
}
/// <summary>
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/SystemProperties.cpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/SystemProperties.cpp b/src/clicache/src/SystemProperties.cpp
index 116002d..3df6b09 100644
--- a/src/clicache/src/SystemProperties.cpp
+++ b/src/clicache/src/SystemProperties.cpp
@@ -57,7 +57,7 @@ namespace Apache
NativePtr->logSettings( );
}
- int32_t SystemProperties::StatisticsSampleInterval::get( )
+ System::Int32 SystemProperties::StatisticsSampleInterval::get( )
{
return NativePtr->statisticsSampleInterval( );
}
@@ -92,32 +92,32 @@ namespace Apache
return NativePtr->heapLRULimit( );
}
- int32_t SystemProperties::HeapLRUDelta::get( )
+ System::Int32 SystemProperties::HeapLRUDelta::get( )
{
return NativePtr->heapLRUDelta( );
}
- int32_t SystemProperties::MaxSocketBufferSize::get( )
+ System::Int32 SystemProperties::MaxSocketBufferSize::get( )
{
return NativePtr->maxSocketBufferSize( );
}
- int32_t SystemProperties::PingInterval::get( )
+ System::Int32 SystemProperties::PingInterval::get( )
{
return NativePtr->pingInterval( );
}
- int32_t SystemProperties::RedundancyMonitorInterval::get( )
+ System::Int32 SystemProperties::RedundancyMonitorInterval::get( )
{
return NativePtr->redundancyMonitorInterval( );
}
- int32_t SystemProperties::NotifyAckInterval::get( )
+ System::Int32 SystemProperties::NotifyAckInterval::get( )
{
return NativePtr->notifyAckInterval( );
}
- int32_t SystemProperties::NotifyDupCheckLife::get( )
+ System::Int32 SystemProperties::NotifyDupCheckLife::get( )
{
return NativePtr->notifyDupCheckLife( );
}
@@ -147,27 +147,27 @@ namespace Apache
return ManagedString::Get( NativePtr->cacheXMLFile( ) );
}
- int32_t SystemProperties::LogFileSizeLimit::get( )
+ System::Int32 SystemProperties::LogFileSizeLimit::get( )
{
return NativePtr->logFileSizeLimit( );
}
- int32_t SystemProperties::LogDiskSpaceLimit::get( )
+ System::Int32 SystemProperties::LogDiskSpaceLimit::get( )
{
return NativePtr->logDiskSpaceLimit( );
}
- int32_t SystemProperties::StatsFileSizeLimit::get( )
+ System::Int32 SystemProperties::StatsFileSizeLimit::get( )
{
return NativePtr->statsFileSizeLimit( );
}
- int32_t SystemProperties::StatsDiskSpaceLimit::get( )
+ System::Int32 SystemProperties::StatsDiskSpaceLimit::get( )
{
return NativePtr->statsDiskSpaceLimit( );
}
- uint32_t SystemProperties::MaxQueueSize::get( )
+ System::UInt32 SystemProperties::MaxQueueSize::get( )
{
return NativePtr->maxQueueSize( );
}
@@ -209,12 +209,12 @@ namespace Apache
return ManagedString::Get( NativePtr->durableClientId( ) );
}
- uint32_t SystemProperties::DurableTimeout::get( )
+ System::UInt32 SystemProperties::DurableTimeout::get( )
{
return NativePtr->durableTimeout( );
}
- uint32_t SystemProperties::ConnectTimeout::get( )
+ System::UInt32 SystemProperties::ConnectTimeout::get( )
{
return NativePtr->connectTimeout( );
}
@@ -224,7 +224,7 @@ namespace Apache
return ManagedString::Get( NativePtr->conflateEvents( ) );
}
- uint32_t SystemProperties::SuspendedTxTimeout::get( )
+ System::UInt32 SystemProperties::SuspendedTxTimeout::get( )
{
return NativePtr->suspendedTxTimeout( );
}
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/SystemProperties.hpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/SystemProperties.hpp b/src/clicache/src/SystemProperties.hpp
index 81be8d6..7a64771 100644
--- a/src/clicache/src/SystemProperties.hpp
+++ b/src/clicache/src/SystemProperties.hpp
@@ -75,9 +75,9 @@ namespace Apache
/// how often the statistics thread writes to disk, in seconds.
/// </summary>
/// <returns>the statistics sampling interval</returns>
- property int32_t StatisticsSampleInterval
+ property System::Int32 StatisticsSampleInterval
{
- int32_t get();
+ System::Int32 get();
}
/// <summary>
@@ -147,54 +147,54 @@ namespace Apache
/// it has exceeded the HeapLRULimit. Defaults to 10%
/// </summary>
/// <returns>the HeapLRUDelta value</returns>
- property int32_t HeapLRUDelta
+ property System::Int32 HeapLRUDelta
{
- int32_t get();
+ System::Int32 get();
}
/// <summary>
/// Returns the maximum socket buffer size to use
/// </summary>
/// <returns>the MaxSocketBufferSize value</returns>
- property int32_t MaxSocketBufferSize
+ property System::Int32 MaxSocketBufferSize
{
- int32_t get();
+ System::Int32 get();
}
/// <summary>
/// Returns the time between two consecutive ping to servers
/// </summary>
/// <returns>the PingInterval value</returns>
- property int32_t PingInterval
+ property System::Int32 PingInterval
{
- int32_t get();
+ System::Int32 get();
}
/// <summary>
/// Returns the time between two consecutive checks for redundancy for HA
/// </summary>
/// <returns>the RedundancyMonitorInterval value</returns>
- property int32_t RedundancyMonitorInterval
+ property System::Int32 RedundancyMonitorInterval
{
- int32_t get();
+ System::Int32 get();
}
/// <summary>
/// Returns the periodic notify ack interval
/// </summary>
/// <returns>the NotifyAckInterval value</returns>
- property int32_t NotifyAckInterval
+ property System::Int32 NotifyAckInterval
{
- int32_t get();
+ System::Int32 get();
}
/// <summary>
/// Returns the expiry time of an idle event id map entry for duplicate notification checking
/// </summary>
/// <returns>the NotifyDupCheckLife value</returns>
- property int32_t NotifyDupCheckLife
+ property System::Int32 NotifyDupCheckLife
{
- int32_t get();
+ System::Int32 get();
}
/// <summary>
@@ -254,45 +254,45 @@ namespace Apache
/// Returns the maximum log file size, in bytes, or 0 if unlimited.
/// </summary>
/// <returns>the maximum limit</returns>
- property int32_t LogFileSizeLimit
+ property System::Int32 LogFileSizeLimit
{
- int32_t get();
+ System::Int32 get();
}
/// <summary>
/// Returns the maximum log Disk size, in bytes, or 0 if unlimited.
/// </summary>
/// <returns>the maximum limit</returns>
- property int32_t LogDiskSpaceLimit
+ property System::Int32 LogDiskSpaceLimit
{
- int32_t get();
+ System::Int32 get();
}
/// <summary>
/// Returns the maximum statistics file size, in bytes, or 0 if unlimited.
/// </summary>
/// <returns>the maximum limit</returns>
- property int32_t StatsFileSizeLimit
+ property System::Int32 StatsFileSizeLimit
{
- int32_t get();
+ System::Int32 get();
}
/// <summary>
/// Returns the maximum statistics Disk size, in bytes, or 0 if unlimited.
/// </summary>
/// <returns>the maximum limit</returns>
- property int32_t StatsDiskSpaceLimit
+ property System::Int32 StatsDiskSpaceLimit
{
- int32_t get();
+ System::Int32 get();
}
/// <summary>
/// Returns the max queue size for notification messages
/// </summary>
/// <returns>the max queue size</returns>
- property uint32_t MaxQueueSize
+ property System::UInt32 MaxQueueSize
{
- uint32_t get();
+ System::UInt32 get();
}
/// <summary>
@@ -363,18 +363,18 @@ namespace Apache
/// Returns the durable client's timeout.
/// </summary>
/// <returns>the durable client timeout</returns>
- property uint32_t DurableTimeout
+ property System::UInt32 DurableTimeout
{
- uint32_t get();
+ System::UInt32 get();
}
/// <summary>
/// Returns the connect timeout used for server and locator handshakes.
/// </summary>
/// <returns>the connect timeout used for server and locator handshakes</returns>
- property uint32_t ConnectTimeout
+ property System::UInt32 ConnectTimeout
{
- uint32_t get();
+ System::UInt32 get();
}
/// <summary>
@@ -390,9 +390,9 @@ namespace Apache
/// Returns the timeout after which suspended transactions are rolled back.
/// </summary>
/// <returns>the timeout for suspended transactions</returns>
- property uint32_t SuspendedTxTimeout
+ property System::UInt32 SuspendedTxTimeout
{
- uint32_t get();
+ System::UInt32 get();
}
/// <summary>
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/TransactionEvent.cpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/TransactionEvent.cpp b/src/clicache/src/TransactionEvent.cpp
index 7bc0a7f..e8367e1 100644
--- a/src/clicache/src/TransactionEvent.cpp
+++ b/src/clicache/src/TransactionEvent.cpp
@@ -64,7 +64,7 @@ namespace Apache
array<EntryEvent<TKey, TValue>^>^ events =
gcnew array<EntryEvent<TKey, TValue>^>( vee.size( ) );
// Loop through the unmanaged event objects to convert them to the managed generic objects.
- for( int32_t index = 0; index < vee.size( ); index++ )
+ for( System::Int32 index = 0; index < vee.size( ); index++ )
{
apache::geode::client::EntryEventPtr& nativeptr( vee[ index ] );
EntryEvent<TKey, TValue> entryEvent( nativeptr.ptr( ) );
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/UserFunctionExecutionException.cpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/UserFunctionExecutionException.cpp b/src/clicache/src/UserFunctionExecutionException.cpp
index e2a8b80..27a1ffe 100644
--- a/src/clicache/src/UserFunctionExecutionException.cpp
+++ b/src/clicache/src/UserFunctionExecutionException.cpp
@@ -41,7 +41,7 @@ namespace Apache
return this;
}
- uint32_t UserFunctionExecutionException::ObjectSize::get( )
+ System::UInt32 UserFunctionExecutionException::ObjectSize::get( )
{
_GF_MG_EXCEPTION_TRY2
throw gcnew IllegalStateException("UserFunctionExecutionException::ObjectSize is not intended for use.");
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/UserFunctionExecutionException.hpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/UserFunctionExecutionException.hpp b/src/clicache/src/UserFunctionExecutionException.hpp
index ec59e35..42f752c 100644
--- a/src/clicache/src/UserFunctionExecutionException.hpp
+++ b/src/clicache/src/UserFunctionExecutionException.hpp
@@ -76,9 +76,9 @@ namespace Apache
/// </exception>
/// <returns>classId of this class</returns>
/// <seealso cref="IGeodeSerializable.ClassId" />
- virtual property uint32_t ClassId
+ virtual property System::UInt32 ClassId
{
- inline virtual uint32_t get()
+ inline virtual System::UInt32 get()
{
throw gcnew IllegalStateException("UserFunctionExecutionException::ClassId is not intended for use.");
return 0;
@@ -92,9 +92,9 @@ namespace Apache
/// <exception cref="IllegalStateException">
/// If this api is called from User code.
/// </exception>
- virtual property uint32_t ObjectSize
+ virtual property System::UInt32 ObjectSize
{
- virtual uint32_t get();
+ virtual System::UInt32 get();
}
// End: IGeodeSerializable members
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/Utils.cpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/Utils.cpp b/src/clicache/src/Utils.cpp
index dbba747..3fc28df 100644
--- a/src/clicache/src/Utils.cpp
+++ b/src/clicache/src/Utils.cpp
@@ -66,7 +66,7 @@ namespace Apache
return nullptr;
}
- int32_t Utils::LastError::get( )
+ System::Int32 Utils::LastError::get( )
{
return apache::geode::client::Utils::getLastError( );
} // namespace Client
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/impl/AuthenticatedCache.cpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/impl/AuthenticatedCache.cpp b/src/clicache/src/impl/AuthenticatedCache.cpp
index 77b28ba..d6c9eae 100644
--- a/src/clicache/src/impl/AuthenticatedCache.cpp
+++ b/src/clicache/src/impl/AuthenticatedCache.cpp
@@ -81,7 +81,7 @@ namespace Apache
array<IRegion<TKey, TValue>^>^ rootRegions =
gcnew array<IRegion<TKey, TValue>^>( vrr.size( ) );
- for( int32_t index = 0; index < vrr.size( ); index++ )
+ for( System::Int32 index = 0; index < vrr.size( ); index++ )
{
apache::geode::client::RegionPtr& nativeptr( vrr[ index ] );
rootRegions[ index ] = Client::Region<TKey, TValue>::Create( nativeptr.ptr( ) );
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/impl/DotNetTypes.hpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/impl/DotNetTypes.hpp b/src/clicache/src/impl/DotNetTypes.hpp
index d777e7c..61265e8 100755
--- a/src/clicache/src/impl/DotNetTypes.hpp
+++ b/src/clicache/src/impl/DotNetTypes.hpp
@@ -58,4 +58,4 @@ namespace Apache
} // namespace Geode
} // namespace Apache
-}
\ No newline at end of file
+}
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/impl/EnumInfo.hpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/impl/EnumInfo.hpp b/src/clicache/src/impl/EnumInfo.hpp
index fac8a03..4ee4797 100755
--- a/src/clicache/src/impl/EnumInfo.hpp
+++ b/src/clicache/src/impl/EnumInfo.hpp
@@ -56,13 +56,13 @@ namespace Apache
}
virtual void ToData(DataOutput^ output);
virtual IGeodeSerializable^ FromData(DataInput^ input);
- virtual property uint32_t ObjectSize
+ virtual property System::UInt32 ObjectSize
{
- uint32_t get(){ return 0; }
+ System::UInt32 get(){ return 0; }
}
- virtual property uint32_t ClassId
+ virtual property System::UInt32 ClassId
{
- uint32_t get(){ return GeodeClassIds::EnumInfo; }
+ System::UInt32 get(){ return GeodeClassIds::EnumInfo; }
}
virtual String^ ToString() override
{
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/impl/GeodeDataInputStream.hpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/impl/GeodeDataInputStream.hpp b/src/clicache/src/impl/GeodeDataInputStream.hpp
index 27118da..8f3bb77 100644
--- a/src/clicache/src/impl/GeodeDataInputStream.hpp
+++ b/src/clicache/src/impl/GeodeDataInputStream.hpp
@@ -55,34 +55,34 @@ namespace Apache
virtual void Close() override { Stream::Close(); }
- virtual property int64_t Length
+ virtual property System::Int64 Length
{
- int64_t get() override
+ System::Int64 get() override
{
- //return (int64_t) m_buffer->BytesRead + m_buffer->BytesRemaining;
- return (int64_t) m_maxSize;
+ //return (System::Int64) m_buffer->BytesRead + m_buffer->BytesRemaining;
+ return (System::Int64) m_maxSize;
}
}
- virtual property int64_t Position
+ virtual property System::Int64 Position
{
- int64_t get() override
+ System::Int64 get() override
{
- return (int64_t) m_position;
+ return (System::Int64) m_position;
}
- void set(int64_t value) override
+ void set(System::Int64 value) override
{
m_position = (int) value;
}
}
- virtual int64_t Seek(int64_t offset, SeekOrigin origin) override
+ virtual System::Int64 Seek(System::Int64 offset, SeekOrigin origin) override
{
throw gcnew System::NotSupportedException("Seek not supported by GeodeDataInputStream");
}
- virtual void SetLength(int64_t value) override { /* do nothing */ }
+ virtual void SetLength(System::Int64 value) override { /* do nothing */ }
virtual void Write(array<Byte> ^ buffer, int offset, int count) override
{
@@ -108,7 +108,7 @@ namespace Apache
buffer, offset, actual);
*/
//pin_ptr<Byte> pin_buffer = &buffer[offset];
- //m_buffer->NativePtr->readBytesOnly((uint8_t*)pin_buffer, actual);
+ //m_buffer->NativePtr->readBytesOnly((System::Byte*)pin_buffer, actual);
m_buffer->ReadBytesOnly(buffer, offset, actual);
m_position += actual;
}
@@ -118,9 +118,9 @@ namespace Apache
virtual void Flush() override { /* do nothing */ }
- property uint32_t BytesRead
+ property System::UInt32 BytesRead
{
- uint32_t get()
+ System::UInt32 get()
{
return m_buffer->BytesReadInternally;
}
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/impl/GeodeDataOutputStream.hpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/impl/GeodeDataOutputStream.hpp b/src/clicache/src/impl/GeodeDataOutputStream.hpp
index c182d22..dc8fc49 100644
--- a/src/clicache/src/impl/GeodeDataOutputStream.hpp
+++ b/src/clicache/src/impl/GeodeDataOutputStream.hpp
@@ -46,36 +46,36 @@ namespace Apache
virtual void Close() override { Stream::Close(); }
- virtual property int64_t Length
+ virtual property System::Int64 Length
{
- int64_t get() override
+ System::Int64 get() override
{
- return (int64_t) m_buffer->BufferLength;
+ return (System::Int64) m_buffer->BufferLength;
}
}
- virtual property int64_t Position
+ virtual property System::Int64 Position
{
- int64_t get() override
+ System::Int64 get() override
{
- return (int64_t) m_position;
+ return (System::Int64) m_position;
}
- void set(int64_t value) override
+ void set(System::Int64 value) override
{
m_position = (int) value;
}
}
- virtual int64_t Seek(int64_t offset, SeekOrigin origin) override
+ virtual System::Int64 Seek(System::Int64 offset, SeekOrigin origin) override
{
throw gcnew System::NotSupportedException("Seek not supported by GeodeDataOutputStream");
}
- virtual void SetLength(int64_t value) override
+ virtual void SetLength(System::Int64 value) override
{
//TODO: overflow check
- //m_buffer->NativePtr->ensureCapacity((uint32_t)value);
+ //m_buffer->NativePtr->ensureCapacity((System::UInt32)value);
}
virtual void Write(array<Byte> ^ buffer, int offset, int count) override
@@ -87,7 +87,7 @@ namespace Apache
m_buffer->WriteBytesOnly(chunk, count);
*/
//pin_ptr<const Byte> pin_bytes = &buffer[offset];
- //m_buffer->NativePtr->writeBytesOnly((const uint8_t*)pin_bytes, count);
+ //m_buffer->NativePtr->writeBytesOnly((const System::Byte*)pin_bytes, count);
m_buffer->WriteBytesOnly(buffer, count, offset);
m_position += count;
_GF_MG_EXCEPTION_CATCH_ALL2/* due to auto replace */
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/impl/GeodeNullStream.hpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/impl/GeodeNullStream.hpp b/src/clicache/src/impl/GeodeNullStream.hpp
index ed911f8..12a87f9 100644
--- a/src/clicache/src/impl/GeodeNullStream.hpp
+++ b/src/clicache/src/impl/GeodeNullStream.hpp
@@ -39,28 +39,28 @@ namespace Apache
virtual void Close() override { Stream::Close(); }
- virtual property int64_t Length
+ virtual property System::Int64 Length
{
- int64_t get() override
+ System::Int64 get() override
{
- return (int64_t) m_position;
+ return (System::Int64) m_position;
}
}
- virtual property int64_t Position
+ virtual property System::Int64 Position
{
- int64_t get() override
+ System::Int64 get() override
{
- return (int64_t) m_position;
+ return (System::Int64) m_position;
}
- void set(int64_t value) override
+ void set(System::Int64 value) override
{
m_position = (int) value;
}
}
- virtual int64_t Seek(int64_t offset, SeekOrigin origin) override
+ virtual System::Int64 Seek(System::Int64 offset, SeekOrigin origin) override
{
throw gcnew System::NotSupportedException("Seek not supported by GeodeNullStream");
/*
@@ -87,7 +87,7 @@ namespace Apache
*/
}
- virtual void SetLength(int64_t value) override { /* do nothing */ }
+ virtual void SetLength(System::Int64 value) override { /* do nothing */ }
virtual void Write(array<Byte> ^ buffer, int offset, int count) override
{
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/impl/ManagedAuthInitialize.cpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/impl/ManagedAuthInitialize.cpp b/src/clicache/src/impl/ManagedAuthInitialize.cpp
index f98e86d..0e022cd 100644
--- a/src/clicache/src/impl/ManagedAuthInitialize.cpp
+++ b/src/clicache/src/impl/ManagedAuthInitialize.cpp
@@ -44,7 +44,7 @@ namespace apache
String^ mg_factoryFunctionName =
Apache::Geode::Client::ManagedString::Get(factoryFunctionName);
String^ mg_typeName = nullptr;
- int32_t dotIndx = -1;
+ System::Int32 dotIndx = -1;
if (mg_factoryFunctionName == nullptr ||
(dotIndx = mg_factoryFunctionName->LastIndexOf('.')) < 0)
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/impl/ManagedCacheListener.cpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/impl/ManagedCacheListener.cpp b/src/clicache/src/impl/ManagedCacheListener.cpp
index c9a4a81..bb637cd 100644
--- a/src/clicache/src/impl/ManagedCacheListener.cpp
+++ b/src/clicache/src/impl/ManagedCacheListener.cpp
@@ -52,10 +52,10 @@ namespace apache
String^ mg_genericKey = nullptr;
String^ mg_genericVal = nullptr;
- int32_t dotIndx = -1;
- int32_t genericsOpenIndx = -1;
- int32_t genericsCloseIndx = -1;
- int32_t commaIndx = -1;
+ System::Int32 dotIndx = -1;
+ System::Int32 genericsOpenIndx = -1;
+ System::Int32 genericsCloseIndx = -1;
+ System::Int32 commaIndx = -1;
if (mg_factoryFunctionName == nullptr ||
(dotIndx = mg_factoryFunctionName->LastIndexOf('.')) < 0)
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/impl/ManagedCacheLoader.cpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/impl/ManagedCacheLoader.cpp b/src/clicache/src/impl/ManagedCacheLoader.cpp
index 977d206..1119a35 100644
--- a/src/clicache/src/impl/ManagedCacheLoader.cpp
+++ b/src/clicache/src/impl/ManagedCacheLoader.cpp
@@ -50,10 +50,10 @@ namespace apache
String^ mg_genericKey = nullptr;
String^ mg_genericVal = nullptr;
- int32_t dotIndx = -1;
- int32_t genericsOpenIndx = -1;
- int32_t genericsCloseIndx = -1;
- int32_t commaIndx = -1;
+ System::Int32 dotIndx = -1;
+ System::Int32 genericsOpenIndx = -1;
+ System::Int32 genericsCloseIndx = -1;
+ System::Int32 commaIndx = -1;
if (mg_factoryFunctionName == nullptr ||
(dotIndx = mg_factoryFunctionName->LastIndexOf('.')) < 0)
http://git-wip-us.apache.org/repos/asf/geode-native/blob/391d79b9/src/clicache/src/impl/ManagedCacheWriter.cpp
----------------------------------------------------------------------
diff --git a/src/clicache/src/impl/ManagedCacheWriter.cpp b/src/clicache/src/impl/ManagedCacheWriter.cpp
index 48e18f4..b5cee21 100644
--- a/src/clicache/src/impl/ManagedCacheWriter.cpp
+++ b/src/clicache/src/impl/ManagedCacheWriter.cpp
@@ -52,10 +52,10 @@ namespace apache
String^ mg_genericKey = nullptr;
String^ mg_genericVal = nullptr;
- int32_t dotIndx = -1;
- int32_t genericsOpenIndx = -1;
- int32_t genericsCloseIndx = -1;
- int32_t commaIndx = -1;
+ System::Int32 dotIndx = -1;
+ System::Int32 genericsOpenIndx = -1;
+ System::Int32 genericsCloseIndx = -1;
+ System::Int32 commaIndx = -1;
if (mg_factoryFunctionName == nullptr ||
(dotIndx = mg_factoryFunctionName->LastIndexOf('.')) < 0)