Hi All, I'm using CodeSynthesis XSD C++/Tree Mapping utility to convert an existing xsd into c++ code we can populate the values in. This was we always make sure we follow the schema.
After doing the conversion, I'm trying to get it to work so I can test it. Problem is, I'm not used to doing this in c++ and it's my first time with this tool.
I start with a class called ABSTRACTNETWORKMODEL with types versno_type
and fromtime_type
typedef'd inside. Here is the constructor I am trying to use as well as the typedefs
ABSTRACTNETWORKMODEL(const versno_type&, const fromtime_type&);
typedef ::xml_schema::double_ versno_type;
typedef ::xml_schema::time fromtime_type;
all these are in the ABSTRACTNETWORKMODEL class and the definitions for double_ and time are:
typedef ::xsd::cxx::tree::time<char, simple_type> time;
typedef double double_;
where the definition for time is a class with multiple constructors:
template<typename C, typename B>
class time: public B, public time_zone
{
public:
time(unsigned short hours, unsigned short minutes, double seconds);
...
}
I know I'm not correctly creating a new ABSTRACTNETWORKMODEL but I don't know what I need to do this. Here is all I'm trying to do at this point:
::xml_schema::time t();
ABSTRACTNETWORKMODEL anm(1234, t);
This, of course, throws an error about converting the second parameter, but can somebody tell me what it is that is incorrect? Or at least point me down the right path, as one of the things I'm trying to do right now is learn more c++.