@@ -257,11 +257,11 @@ private static void generateGroupClassHeader(
257257 numInGroupToken .encoding ().applicableMaxValue ().longValue ()));
258258
259259 sb .append (String .format (
260-  indent  + " static const  std::uint64_t sbeHeaderSize()\n "  +
260+  indent  + " static SBE_CONST_KIND  std::uint64_t sbeHeaderSize()\n "  +
261261 indent  + " {\n "  +
262262 indent  + " return %1$d;\n "  +
263263 indent  + " }\n \n "  +
264-  indent  + " static const  std::uint64_t sbeBlockLength()\n "  +
264+  indent  + " static SBE_CONST_KIND  std::uint64_t sbeBlockLength()\n "  +
265265 indent  + " {\n "  +
266266 indent  + " return %2$d;\n "  +
267267 indent  + " }\n \n "  +
@@ -338,7 +338,7 @@ private static CharSequence generateGroupProperty(
338338
339339 sb .append (String .format (
340340 "\n "  +
341-  indent  + " static const  std::uint16_t %1$sId(void)\n "  +
341+  indent  + " static SBE_CONST_KIND  std::uint16_t %1$sId(void)\n "  +
342342 indent  + " {\n "  +
343343 indent  + " return %2$d;\n "  +
344344 indent  + " }\n \n " ,
@@ -520,15 +520,15 @@ private void generateVarDataDescriptors(
520520 ));
521521
522522 sb .append (String .format (
523-  indent  + " static const  std::uint64_t %1$sSinceVersion(void)\n "  +
523+  indent  + " static SBE_CONST_KIND  std::uint64_t %1$sSinceVersion(void)\n "  +
524524 indent  + " {\n "  +
525525 indent  + " return %2$d;\n "  +
526526 indent  + " }\n \n "  +
527527 indent  + " bool %1$sInActingVersion(void)\n "  +
528528 indent  + " {\n "  +
529529 indent  + " return (m_actingVersion >= %1$sSinceVersion()) ? true : false;\n "  +
530530 indent  + " }\n \n "  +
531-  indent  + " static const  std::uint16_t %1$sId(void)\n "  +
531+  indent  + " static SBE_CONST_KIND  std::uint16_t %1$sId(void)\n "  +
532532 indent  + " {\n "  +
533533 indent  + " return %3$d;\n "  +
534534 indent  + " }\n \n " ,
@@ -539,7 +539,7 @@ private void generateVarDataDescriptors(
539539
540540 sb .append (String .format (
541541 "\n "  +
542-  indent  + " static const  std::uint64_t %sHeaderLength()\n "  +
542+  indent  + " static SBE_CONST_KIND  std::uint64_t %sHeaderLength()\n "  +
543543 indent  + " {\n "  +
544544 indent  + " return %d;\n "  +
545545 indent  + " }\n " ,
@@ -998,7 +998,7 @@ private CharSequence generatePrimitiveFieldMetaData(final String propertyName, f
998998
999999 sb .append (String .format (
10001000 "\n "  +
1001-  indent  + " static const  %1$s %2$sNullValue()\n "  +
1001+  indent  + " static SBE_CONST_KIND  %1$s %2$sNullValue()\n "  +
10021002 indent  + " {\n "  +
10031003 indent  + " return %3$s;\n "  +
10041004 indent  + " }\n " ,
@@ -1009,7 +1009,7 @@ private CharSequence generatePrimitiveFieldMetaData(final String propertyName, f
10091009
10101010 sb .append (String .format (
10111011 "\n "  +
1012-  indent  + " static const  %1$s %2$sMinValue()\n "  +
1012+  indent  + " static SBE_CONST_KIND  %1$s %2$sMinValue()\n "  +
10131013 indent  + " {\n "  +
10141014 indent  + " return %3$s;\n "  +
10151015 indent  + " }\n " ,
@@ -1020,7 +1020,7 @@ private CharSequence generatePrimitiveFieldMetaData(final String propertyName, f
10201020
10211021 sb .append (String .format (
10221022 "\n "  +
1023-  indent  + " static const  %1$s %2$sMaxValue()\n "  +
1023+  indent  + " static SBE_CONST_KIND  %1$s %2$sMaxValue()\n "  +
10241024 indent  + " {\n "  +
10251025 indent  + " return %3$s;\n "  +
10261026 indent  + " }\n " ,
@@ -1079,7 +1079,7 @@ private CharSequence generateArrayProperty(
10791079
10801080 sb .append (String .format (
10811081 "\n "  +
1082-  indent  + " static const  std::uint64_t %1$sLength(void)\n "  +
1082+  indent  + " static SBE_CONST_KIND  std::uint64_t %1$sLength(void)\n "  +
10831083 indent  + " {\n "  +
10841084 indent  + " return %2$d;\n "  +
10851085 indent  + " }\n \n " ,
@@ -1225,7 +1225,7 @@ private CharSequence generateConstPropertyMethods(final String propertyName, fin
12251225
12261226 sb .append (String .format (
12271227 "\n "  +
1228-  indent  + " static const  std::uint64_t %1$sLength(void)\n "  +
1228+  indent  + " static SBE_CONST_KIND  std::uint64_t %1$sLength(void)\n "  +
12291229 indent  + " {\n "  +
12301230 indent  + " return %2$d;\n "  +
12311231 indent  + " }\n \n " ,
@@ -1324,7 +1324,7 @@ private static CharSequence generateFixedFlyweightCode(final String className, f
13241324 " reset(buffer, offset, bufferLength, actingVersion);\n "  +
13251325 " return *this;\n "  +
13261326 " }\n \n "  +
1327-  " static const  std::uint64_t encodedLength(void)\n "  +
1327+  " static SBE_CONST_KIND  std::uint64_t encodedLength(void)\n "  +
13281328 " {\n "  +
13291329 " return %2$s;\n "  +
13301330 " }\n \n " ,
@@ -1498,7 +1498,7 @@ private CharSequence generateFields(final String containingClassName, final List
14981498
14991499 sb .append (String .format (
15001500 "\n "  +
1501-  indent  + " static const  std::uint16_t %1$sId(void)\n "  +
1501+  indent  + " static SBE_CONST_KIND  std::uint16_t %1$sId(void)\n "  +
15021502 indent  + " {\n "  +
15031503 indent  + " return %2$d;\n "  +
15041504 indent  + " }\n \n " ,
@@ -1507,7 +1507,7 @@ private CharSequence generateFields(final String containingClassName, final List
15071507 ));
15081508
15091509 sb .append (String .format (
1510-  indent  + " static const  std::uint64_t %1$sSinceVersion(void)\n "  +
1510+  indent  + " static SBE_CONST_KIND  std::uint64_t %1$sSinceVersion(void)\n "  +
15111511 indent  + " {\n "  +
15121512 indent  + " return %2$d;\n "  +
15131513 indent  + " }\n \n "  +
0 commit comments