Example #1
0
def main():
	if len(sys.argv) < 3:
	    sys.stderr.write('Usage: sys.argv[0] import-file export-file\n')
	    sys.stderr.write('import-file: *.dbc|*.dbf|*.kcd\n')
	    sys.stderr.write('export-file: somefile.zip\n')
	    sys.exit(1)

	infile = sys.argv[1]
	outfile = os.path.splitext(sys.argv[2])[0]

	db = im.importany(infile)
	tickerBoardUnits(db, outfile)
Example #2
0
def main():
    if len(sys.argv) < 3:
        sys.stderr.write('Usage: sys.argv[0] import-file export-file\n')
        sys.stderr.write('import-file: *.dbc|*.dbf|*.kcd\n')
        sys.stderr.write('export-file: somefile.zip\n')
        sys.exit(1)

    infile = sys.argv[1]
    outfile = os.path.splitext(sys.argv[2])[0]

    db = im.importany(infile)
    tickerBoardUnits(db, outfile)
Example #3
0
#DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
#PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
#CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
#OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
#DAMAGE.

if len(sys.argv) < 3:
    sys.stderr.write('Usage: sys.argv[0] matrix1 matrix2\n')
    sys.stderr.write('matrixX can be any of *.dbc|*.dbf|*.kcd|*.arxml\n')
    sys.exit(1)

matrix1 = sys.argv[1]
matrix2 = sys.argv[2]

print("Importing " + matrix1 + " ... ")
db1 = im.importany(matrix1)
print("%d Frames found" % (db1._fl._list.__len__()))

print("Importing " + matrix2 + " ... ")
db2 = im.importany(matrix2)
print("%d Frames found" % (db2._fl._list.__len__()))

print("\n\n")


def dumpResult(res, depth=0):
    if res._type is not None and res._result != "equal":
        for i in range(0, depth):
            print(" ", )
        print(res._type + " " + res._result + " ", )
        if hasattr(res._ref, '_name'):
Example #4
0
#!/usr/bin/env python
# importany laed alle verfuegbaren importfilter
from library.copy import *
import library.importany as im
import library.exportall as ex
#fuer Fileio:
import sys

#
# Einlesen der Quell-Matritzen
#

# Importieren einer CAN-Matrix (*.dbc, *.dbf, *.kcd, *.arxml)
db1 = im.importany("aa.dbc")
# Importieren einer 2. CAN-Matrix (*.dbc, *.dbf, *.kcd, *.arxml)
db2 = im.importany("aa.dbc")

#
# Ziel-Matrix anlegen
#

db3 = CanMatrix()

#
# Hier kann die neue Can-Matrix 'Programmiert' werden:
# -----------------------------------------------------
#

#Kopiere ID 1234 aus der 2. K-Matrix in die Zielmatrix
copyFrame(1234, db2, db3)
Example #5
0
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
# DAMAGE.

if len(sys.argv) < 3:
    sys.stderr.write("Usage: sys.argv[0] matrix1 matrix2\n")
    sys.stderr.write("matrixX can be any of *.dbc|*.dbf|*.kcd|*.arxml\n")
    sys.exit(1)

matrix1 = sys.argv[1]
matrix2 = sys.argv[2]

print "Importing " + matrix1 + " ... "
db1 = im.importany(matrix1)
print "%d Frames found" % (db1._fl._list.__len__())

print "Importing " + matrix2 + " ... "
db2 = im.importany(matrix2)
print "%d Frames found" % (db2._fl._list.__len__())


print "\n\n"


def dumpResult(res, depth=0):
    if res._type is not None and res._result != "equal":
        for i in range(0, depth):
            print " ",
        print res._type + " " + res._result + " ",
Example #6
0
#!/usr/bin/env python
# importany laed alle verfuegbaren importfilter
from library.copy import *
import library.importany as im
import library.exportall as ex
#fuer Fileio:
import sys

#
# Einlesen der Quell-Matritzen
#

# Importieren einer CAN-Matrix (*.dbc, *.dbf, *.kcd, *.arxml)
db1 = im.importany("aa.dbc")
# Importieren einer 2. CAN-Matrix (*.dbc, *.dbf, *.kcd, *.arxml)
db2 = im.importany("aa.dbc")

#
# Ziel-Matrix anlegen
#

db3 = CanMatrix()

#
# Hier kann die neue Can-Matrix 'Programmiert' werden:
# -----------------------------------------------------
#

#Kopiere ID 1234 aus der 2. K-Matrix in die Zielmatrix
copyFrame(1234, db2, db3)