Skip to content

Instantly share code, notes, and snippets.

View duck2's full-sized avatar

Duck Deux duck2

View GitHub Profile
/*
* This file is generated by uxsdcxx 0.1.0.
* https://github.com/duck2/uxsdcxx
* Modify only if your build process doesn't involve regenerating this file.
*
* Cmdline: uxsdcxx.py rr_graph.xsd
* Input file: /home/duck2/uxsdcxx/rr_graph.xsd
* md5sum of input file: 86ad1829ffcbd56309275e329a54a96f
*/
[...]
/* Internal loading functions, which validate and load a PugiXML DOM tree into memory. */
inline int load_int(const char *in){
int out;
out = std::strtol(in, NULL, 10);
if(errno != 0)
throw std::runtime_error("Invalid value `" + std::string(in) + "` when loading into a int."); return out;
}
# This file is generated by uxsdcap 0.0.3.
# https://github.com/duck2/uxsdcxx
# Modify only if your build process doesn't involve regenerating this file.
#
# Cmdline: ./uxsdcap.py rr_graph.xsd
# Input file: /home/duck2/uxsdcxx/rr_graph.xsd
# md5sum of input file: 5d63f2f2f736d8615ce857e15484ba76
@0xd7fc24a4b3dfe728;
from dataclasses import dataclass
from typing import List, Tuple, Dict, Set, Union, Optional
import xmlschema # type: ignore
from xmlschema.validators import ( # type: ignore
XsdAttribute,
XsdAtomicBuiltin,
XsdAtomicRestriction,
XsdComplexType,
XsdElement,
<?xml version="1.0"?>
<!--
Copyright 2018 Jeppe Johansen
XML 1.0 Schema for rr_graph structure developed based on documentation here:
http://vtr-verilog-to-routing.readthedocs.io/en/latest/vpr/file_formats.html#routing-resource-graph-file-format-xml
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="channel">
#include <bitset>
#include <cstring>
#include <iostream>
#include <limits>
#include <memory>
#include <string>
#include <vector>
#include <error.h>
#include <stddef.h>
#include <bitset>
#include <cstring>
#include <iostream>
#include <limits>
#include <memory>
#include <string>
#include <vector>
#include <error.h>
#include <stddef.h>
#include <bitset>
#include <cstring>
#include <memory>
#include <string>
#include <vector>
#include <error.h>
#include <stddef.h>
#include <stdint.h>
#include "pugixml.hpp"
#include <bitset>
#include <cstring>
#include <memory>
#include <string>
#include <vector>
#include <stddef.h>
#include <stdint.h>
#include "pugixml.hpp"
#include <bitset>
#include <cstring>
#include <memory>
#include <string>
#include <vector>
#include "pugixml.hpp"
struct t_channel;
struct t_x_list;