From 9582bfafcc0b2b51dfc18e758a9e57582e580dee Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Thu, 30 Jun 2022 11:14:39 +0800 Subject: [PATCH] use ENUM_CLASS_RANGE --- inc/hgl/assets/AssetsSource.h | 16 ++++++---------- inc/hgl/assets/AssetsType.h | 5 ++--- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/inc/hgl/assets/AssetsSource.h b/inc/hgl/assets/AssetsSource.h index 8c22676..4f4b30b 100644 --- a/inc/hgl/assets/AssetsSource.h +++ b/inc/hgl/assets/AssetsSource.h @@ -25,9 +25,7 @@ namespace hgl StreamDevice, ///<流式设备(如摄像头、麦克风) Network, ///<网络 - BEGIN_RANGE =Memory, - END_RANGE =Network, - RANGE_SIZE =(END_RANGE-BEGIN_RANGE)+1 + ENUM_CLASS_RANGE(Memory,Network) };//enum class SourceType /** @@ -35,14 +33,12 @@ namespace hgl */ enum class IndexType { - itAnonymous=0, ///<匿名访问 - itName, ///<字符串名称 - itID, /// namespace hgl { /** @@ -17,9 +18,7 @@ namespace hgl Wave, ///<声音数据 Video, ///<视频数据 - BEGIN_RANGE =Binary, - END_RANGE =Video, - RANGE_SIZE =(END_RANGE-BEGIN_RANGE)+1 + ENUM_CLASS_RANGE(Binary,Video) };//enum class AssetsType }//namespace hgl #endif//HGL_ASSETS_TYPE_INCLUDE