Пример #1
0
        private EntityTransactionOutcome Process()
        {
            EntityTransactionOutcome outcome;

            this.SourceSystemEntityId = this.GetSourceSystemEntityId();
            this.Mapping = this.mappingRepository.GetMapping(this.SourceSystemEntityId);
            if (this.ShouldProcess())
            {
                PreprocessedEntity <TEntity> preprocessedEntity
                    = this.preprocessor.Preprocess(
                          this.SourceSystemEntity,
                          EntityOrigin.SourceSystem,
                          this.MappingExists);
                this.SourceSystemEntity = preprocessedEntity.Entity;
                if (!preprocessedEntity.IsRejected)
                {
                    if (this.MappingExists)
                    {
                        outcome = this.ProcessEntityWithMapping();
                    }
                    else
                    {
                        outcome = this.ProcessEntityWithoutMapping();
                    }
                }
                else
                {
                    outcome = EntityTransactionOutcome.Rejected;
                }
            }
            else
            {
                outcome = EntityTransactionOutcome.Skipped;
            }
            return(outcome);
        }
Пример #2
0
 protected PreprocessedEntity(PreprocessedEntity.Internal* native, bool isInternalImpl = false)
     : base((CppSharp.Parser.AST.Declaration.Internal*) native)
 {
 }
Пример #3
0
 private PreprocessedEntity(PreprocessedEntity.Internal native)
     : this(__CopyValue(native))
 {
     __ownsNativeInstance = true;
     NativeToManagedMap[__Instance] = this;
 }
Пример #4
0
 private static PreprocessedEntity.Internal* __CopyValue(PreprocessedEntity.Internal native)
 {
     var ret = Marshal.AllocHGlobal(176);
     CppSharp.Parser.AST.PreprocessedEntity.Internal.cctor_2(ret, new global::System.IntPtr(&native));
     return (PreprocessedEntity.Internal*) ret;
 }
Пример #5
0
 public static PreprocessedEntity __CreateInstance(PreprocessedEntity.Internal native)
 {
     return new PreprocessedEntity(native);
 }
Пример #6
0
 protected PreprocessedEntity(PreprocessedEntity.Internal* native, bool skipVTables = false)
     : base((CppSharp.Parser.AST.Declaration.Internal*) null)
 {
     __PointerAdjustment = 0;
     if (native == null)
         return;
     __Instance = new global::System.IntPtr(native);
 }
Пример #7
0
 private PreprocessedEntity(PreprocessedEntity.Internal native, bool skipVTables = false)
     : this(__CopyValue(native), skipVTables)
 {
     __ownsNativeInstance = true;
     NativeToManagedMap[__Instance] = this;
 }
Пример #8
0
 public static PreprocessedEntity __CreateInstance(PreprocessedEntity.Internal native, bool skipVTables = false)
 {
     return new PreprocessedEntity(native, skipVTables);
 }
Пример #9
0
 private static void* __CopyValue(PreprocessedEntity.__Internal native)
 {
     var ret = Marshal.AllocHGlobal(12);
     *(PreprocessedEntity.__Internal*) ret = native;
     return ret.ToPointer();
 }
Пример #10
0
 void VisitPreprocessedEntity(PreprocessedEntity entity, AST.PreprocessedEntity _entity)
 {
     VisitDeclaration(entity, _entity);
     _entity.Location = VisitMacroLocation(entity.Location);
 }
Пример #11
0
 internal PreprocessedEntity(PreprocessedEntity.Internal native)
     : this(&native)
 {
 }
Пример #12
0
 internal PreprocessedEntity(PreprocessedEntity.Internal* native)
     : this(new global::System.IntPtr(native))
 {
 }
Пример #13
0
 private PreprocessedEntity(PreprocessedEntity.Internal native)
     : this(__CopyValue(native))
 {
     __ownsNativeInstance = true;
 }
Пример #14
0
 internal PreprocessedEntity(PreprocessedEntity.Internal native)
     : this(__CopyValue(native))
 {
 }
Пример #15
0
 protected PreprocessedEntity(PreprocessedEntity.Internal* native, bool skipVTables = false)
 {
     if (native == null)
         return;
     __Instance = new global::System.IntPtr(native);
 }
Пример #16
0
 private static PreprocessedEntity.Internal* __CopyValue(PreprocessedEntity.Internal native)
 {
     var ret = (PreprocessedEntity.Internal*) Marshal.AllocHGlobal(12);
     *ret = native;
     return ret;
 }