Beispiel #1
0
        /// <inheritdoc />
        public override void VisitConstField(CppConstField cppConstField)
        {
            string cppTypeFullName    = CppTypeMapper.GetCppFullTypeName(cppConstField.FieldInfo.FieldType);
            string constValueAsString = cppConstField.ConstValue.ToString();

            WriteLine($"static const {cppTypeFullName} {cppConstField.FieldInfo.Name} = {constValueAsString};");
            WriteLine();
        }
Beispiel #2
0
 /// <inheritdoc />
 public override void VisitConstField(CppConstField cppConstField)
 {
     acceptedCodeWriters.ForEach(r => r.VisitConstField(cppConstField));
 }
Beispiel #3
0
 /// <inheritdoc />
 public override void VisitConstField(CppConstField cppConstField)
 {
     // By default, ignore the const fields.
     //
 }
Beispiel #4
0
 /// <summary>
 /// Write a struct const field definition.
 /// </summary>
 /// <param name="cppConstField"></param>
 public abstract void VisitConstField(CppConstField cppConstField);
 /// <inheritdoc />
 public override void VisitConstField(CppConstField cppConstField)
 {
     // Nothing.
     //
 }
Beispiel #6
0
 /// <inheritdoc />
 public sealed override void VisitConstField(CppConstField cppConstField)
 {
     // Do not generate information about structure fields.
     //
 }