Changeset 1177 for trunk/MagicSoft
- Timestamp:
- 01/14/02 18:03:45 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MWriteAsciiFile.cc
r1176 r1177 48 48 ClassImp(MWriteAsciiFile); 49 49 50 // -------------------------------------------------------------------------- 51 // 52 // Init. Replaces the same code used in all constructors. 53 // 50 54 void MWriteAsciiFile::Init(const char *filename, const char *name, const char *title) 51 55 { … … 110 114 // -------------------------------------------------------------------------- 111 115 // 112 // Check if our container is ready for writing. If so write it. 116 // Check if the containers are ready for writing. If so write them. 117 // The containers are written in one line, one after each other. 118 // If not all containers are written (because of the IsReadyToSave-flag) 119 // a warning message is print. 113 120 // 114 121 void MWriteAsciiFile::CheckAndWrite() const … … 117 124 118 125 MParContainer *cont = NULL; 126 127 const Int_t num = fContainer.GetSize(); 119 128 120 129 TIter Next(&fContainer); … … 128 137 *fOut << " "; 129 138 written = kTRUE; 139 140 num--; 130 141 } 131 142 132 143 if (written) 133 144 *fOut << endl; 145 146 if (num!=0) 147 *fOut << warn << "Warning - given number of containers doesn't fit number of written containers." << endl; 134 148 } 135 149 … … 145 159 // -------------------------------------------------------------------------- 146 160 // 147 // If the container is yet unknown and the name of it is known only, try 148 // to get the container from the parameter list. 161 // Tries to get all containers from the ParList which were given by name 162 // adds them to the list of pointers to the container which should be 163 // written to the ascii file. 149 164 // 150 165 Bool_t MWriteAsciiFile::GetContainer(MParList *pList) … … 180 195 // -------------------------------------------------------------------------- 181 196 // 197 // Add another container (by name) to be written to the ascii file. 198 // The container will be output one after each other in one line. 182 199 // 183 200 void MWriteAsciiFile::AddContainer(const char *cname) … … 189 206 // -------------------------------------------------------------------------- 190 207 // 208 // Add another container (by pointer) to be written to the ascii file. 209 // The container will be output one after each other in one line. 191 210 // 192 211 void MWriteAsciiFile::AddContainer(MParContainer *cont)
Note:
See TracChangeset
for help on using the changeset viewer.