Revision 1605

trunk/tests/xml/ADMB_XMLDoc.cpp (revision 1605)
74 74
 */
75 75
int ADMB_XMLDoc::write(void)
76 76
{
77
   int nbyte = xmlSaveFormatFileEnc((const char*)XMLFileName.c_str(),doc, "UTF-8", 1);
77
   int nbyte = 0;
78
   nbyte = xmlSaveFormatFileEnc((const char*)XMLFileName.c_str(),doc, "UTF-8", 1);
78 79
   return  nbyte;
79 80
}
80 81

  
trunk/tests/xml/admodel.h (revision 1605)
1 1
/*
2
 * $Id: admodel.h 1598 2014-02-03 21:21:41Z johnoel $
2
 * $Id: admodel.h 1534 2014-01-20 06:48:55Z stevenmartell $
3 3
 *
4 4
 * Author: David Fournier
5 5
 * Copyright (c) 2008-2012 Regents of the University of California
......
73 73
#include <cifstrem.h>
74 74

  
75 75
#include <adstring.hpp>
76
//#include "ADMB_XMLDoc.h"
77
class init_xml_doc;
76 78

  
77 79
#if defined(UNIXKLUDGE)
78 80
#include <unistd.h>
......
139 141
  exception * err;
140 142
  AD_matherror(exception * _err) : err(_err) {;}
141 143
#endif
142
#if defined (_MSC_VER)
144
#if defined (__MSVC32__)
143 145
  _exception * err;
144 146
  AD_matherror(_exception * _err) : err(_err) {;}
145 147
#endif
......
257 259
  named_dvariable& operator = (CGNU_DOUBLE m);
258 260
  friend class model_parameters;
259 261
};
262
/*
263
class init_xml_doc : public ADMB_XMLDoc, public model_name_tag
264
{
265
public:
266
  init_xml_doc(void) : ADMB_XMLDoc(), model_name_tag() {;}
267
  void allocate(const char * s);
268
  friend class model_parameters;
269
};
270
*/
260 271

  
272

  
261 273
/**
262 274
 * Description not yet available.
263 275
 * \param
......
730 742
};
731 743
#endif // #if defined(USE_ADPVM)
732 744

  
745

  
733 746
class initial_params;
734
typedef initial_params* pinitial_params;
735
typedef void* ptovoid;
747

  
748
typedef initial_params * pinitial_params;
749
typedef void * ptovoid;
750

  
736 751
/**
737
For storing void pointers in a array.
738
*/
752
 * Description not yet available.
753
 * \param
754
 */
739 755
class adlist_ptr
740 756
{
741 757
  ptovoid * ptr;
742 758
  int current_size;
743 759
  int current;
744 760
  void resize(void);
745
  void add_to_list(void* p);
761
  void add_to_list(void * p);
746 762
public:
763
  ~adlist_ptr();
764
  pinitial_params  & operator [] (int i);
747 765
  adlist_ptr(int init_size);
748
  ~adlist_ptr();
749

  
750
  void initialize();
751

  
752
  pinitial_params& operator[](int i);
753

  
754 766
  friend class initial_params;
755 767
};
756 768

  
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff