- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
//
#include "Objects.h"
#define MACRO_STATIC_INSTANCE(group, var) Group##group##Var##var Group##group##Var##var::mInstance;
namespace apl { namespace dnp {
MACRO_STATIC_INSTANCE(1,0)
MACRO_STATIC_INSTANCE(1,1)
MACRO_STATIC_INSTANCE(1,2)
MACRO_STATIC_INSTANCE(2,0)
MACRO_STATIC_INSTANCE(2,1)
MACRO_STATIC_INSTANCE(2,2)
MACRO_STATIC_INSTANCE(2,3)
<... 100500 строк ...>
MACRO_STATIC_INSTANCE(60,1)
MACRO_STATIC_INSTANCE(60,2)
MACRO_STATIC_INSTANCE(60,3)
MACRO_STATIC_INSTANCE(60,4)
MACRO_STATIC_INSTANCE(80,1)
MACRO_STATIC_INSTANCE(110,0)
MACRO_STATIC_INSTANCE(111,0)
MACRO_STATIC_INSTANCE(112,0)
MACRO_STATIC_INSTANCE(113,0)
//////////////////////////////////////////////
// Binary Input Types
//////////////////////////////////////////////
void Group1Var2::Write(apl::byte_t* p, const apl::Binary& v) const { DNPToStream::WriteQ(p, Group1Var2::Inst(), v); }
void Group2Var1::Write(apl::byte_t* p, const apl::Binary& v) const { DNPToStream::WriteQ(p, Group2Var1::Inst(), v); }
void Group2Var2::Write(apl::byte_t* p, const apl::Binary& v) const { DNPToStream::WriteQT(p, Group2Var2::Inst(), v); }
void Group2Var3::Write(apl::byte_t* p, const apl::Binary& v) const { DNPToStream::WriteQT(p, Group2Var3::Inst(), v); }
Binary Group1Var2::Read(const apl::byte_t* p) const { return DNPFromStream::ReadBinaryQV(p, Group1Var2::Inst()); }
Binary Group2Var1::Read(const apl::byte_t* p) const { return DNPFromStream::ReadBinaryQV(p, Group2Var1::Inst()); }
Binary Group2Var2::Read(const apl::byte_t* p) const { return DNPFromStream::ReadBinaryQV(p, Group2Var2::Inst()); }
Binary Group2Var3::Read(const apl::byte_t* p) const { return DNPFromStream::ReadBinaryQVT(p, Group2Var3::Inst()); }
"We provide world-class engineering services to companies leading the smart energy revolution."
посредством копипасты. малаца.
pushkoff 14.01.2011 19:14 # 0
brainstorm 15.01.2011 00:45 # 0
хотя такого кодера надо для снижения рисков пристреливать. ога )
pushkoff 15.01.2011 20:47 # 0
у нас питоновская автогенерилка и посложнее выхлоп выдает...
xXx_totalwar 15.01.2011 21:03 # 0
во-первых, если сорцы генерируют из DSL, то и поддерживать надо DSL и кодогенератор.
во-вторых, незачем гадать - репы здесь https://github.com/gec/dnp3/ - никаких следов DSL.
pushkoff 15.01.2011 21:07 # 0
bugmenot 15.01.2011 01:52 # 0
чой-то я под ней последнее время много быдлокода вижу...
Govnoeb 15.01.2011 13:49 # −5
а бля так это и есть хаскелл. вот оказывается он какой
guest 15.01.2011 20:50 # +3
Анонимус 16.01.2011 09:32 # 0