00001 //--------------------------------------------------------------------------- 00002 00003 #ifndef OutputShortH 00004 #define OutputShortH 00005 00006 #include "BehaviorBase.h" 00007 #include "Constants.h" 00008 00009 class clSimManager; 00010 class DOMDocument; 00011 00033 class clShortOutput : public clBehaviorBase { 00034 00035 public: 00036 00042 clShortOutput(clSimManager *p_oSimManager); 00043 00047 ~clShortOutput(); 00048 00052 void Action(); 00053 00054 protected: 00055 00061 void GetData(xercesc::DOMDocument *p_oDoc); 00062 00063 char m_cFileName[MAX_FILENAME_SIZE]; 00069 struct stcTreeOutputInfo { 00070 int iType; 00071 bool bSaveRBA; 00073 bool bSaveABA; 00075 bool bSaveRDN; 00076 bool bSaveADN; 00077 } *mp_treeSettings; 00079 short int m_iNumTypesToSave; 00085 struct stcCoords {int iX; 00086 int iY; 00087 }; 00088 00093 struct stcSubplotInfo { 00094 char cSubplotName[MAX_SUBPLOT_NAME_SIZE]; 00096 stcCoords *p_cellList; 00097 short int iNumCells; 00098 } *mp_subplots; 00099 short int m_iNumSubplotsToSave; 00104 void WriteFileHeader(); 00105 00111 void ExtractTreeInfo(xercesc::DOMDocument *p_oDoc); 00112 00118 void ExtractSubplotInfo(xercesc::DOMDocument *p_oDoc); 00119 00130 bool TestForSave(DOMElement *p_oParentElement, char *cNodeName); 00131 }; 00132 //--------------------------------------------------------------------------- 00133 #endif