Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror

Submission Summary: 0 pending, 48 declined, 3 accepted (51 total, 5.88% accepted)

×
Programming

Submission + - Adapting a tool that uses SVN to use GIT instead

wowbagger writes: There are plenty of tutorials on using GIT as a replacement for Subversion — to access a Subversion repository using GIT. But what I need is a tool that allows a (unfortunately closed-source) program which "knows" how to use SVN to access a GIT repository — that is, almost the exact opposite. The tool is Enterprise Architect, a Unified Modeling Language tool, which can use SVN to provide version and configuration control over a UML model. What I'd need would be a tool that used the same command line parameters as "svn" but accessed a GIT repository. Obviously the full range of GIT capabilities wouldn't be available to Enterprise Architect, but if it can do basic functions that would be good enough.
Networking

Submission + - Sub-Slashdots down

wowbagger writes: It seems that many of the sub-Slashdots (e.g. ask.slashdot.org, hardware.slashdot.org) are down (all attempts to access them get a "connection reset by peer"). I've seen this over the past several days, at several locations. And since there don't seem to be any "report a problem with Slashdot" links anymore (just bug reporting against Slashcode) I thought I'd submit this as a story. I don't expect it to be published, but it would be nice were it to be FIXED.
Programming

Submission + - Code generator to parse XML into C++ structs?

wowbagger writes: Does anybody know of a tool which will allow defining an XML grammar and C++ structures, such that the output of the tool is code which will parse the XML and fill in the C++ structures?

What I have is a LARGE number (many hundreds) of structures defined by a communications protocol (e.g NOT BY ME), which I wish to log to an XML file, and also read from an XML file into structures in memory. Yes, I could write all the parsers by hand — I could also stick a fork in my eye. I'd rather not — I'd rather find a tool to describe the structures and the XML to and let the tool build the code.

In other words, I'd like to automatically generate the code to go from

struct some_struct
{
  int foo;
  int bar:4;
  enum {larry,moe,curly} stooge;
};
to

<some_struct foo="42">
    <bar>6</bar>
    <stooge which="larry"/>
  </some_struct>
and vis-versa.

Yes, I'd have to tell the tool *how* to map a structure element to XML — there'd be no way for the tool to infer the grammar from the C++ — but just generating the code and RelaxNG schema would still save a lot of work.

Does anybody have any ideas? I cannot believe everybody else is writing this stuff by hand!

Slashdot Top Deals

And it should be the law: If you use the word `paradigm' without knowing what the dictionary says it means, you go to jail. No exceptions. -- David Jones

Working...