Changeset 561 for CMT/HEAD/source/cmt_generator.h
- Timestamp:
- Mar 8, 2011, 1:56:48 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/source/cmt_generator.h
r488 r561 138 138 }; 139 139 140 class InGenerator 141 { 142 public: 143 InGenerator (bool usecmt); 144 int build (const Constituent& constituent, ostream& out = cout); 145 146 private: 147 InGenerator (); 148 149 private: 150 class Buffer 151 { 152 public: 153 Buffer (); 154 void set_names (const CmtSystem::cmt_string_vector& names); 155 int print (ostream& s); 156 void set_uses (bool usecmt); 157 private: 158 virtual int initialize () = 0; 159 160 protected: 161 CmtSystem::cmt_string_vector m_names; 162 ostringstream m_buffer; 163 bool m_initialized; 164 bool m_usecmt; 165 }; 166 167 class Languages : public Buffer 168 { 169 private: 170 int initialize (); 171 }; 172 173 class Fragments : public Buffer 174 { 175 private: 176 int initialize (); 177 }; 178 179 private: 180 Fragments m_common; 181 Fragments m_application; 182 Fragments m_application_library; 183 Fragments m_library; 184 Fragments m_document; 185 Languages m_languages; 186 bool m_usecmt; 187 }; 188 140 189 /** 141 190 Generic command interface to be used by the cmt command driver. … … 161 210 // Build the constituents.make file 162 211 static void build_constituents_makefile (const cmt_string& package, 163 const CmtSystem::cmt_string_vector& arguments); 212 const cmt_string& file = ""); 213 // const CmtSystem::cmt_string_vector& arguments); 164 214 165 215 // Build the makefile fragment for one constituent … … 167 217 const cmt_string& file = ""); 168 218 static void build_constituent_makefile (const CmtSystem::cmt_string_vector& arguments); 219 static int build_constituent_infile (const Constituent& constituent, 220 const cmt_string& outdir = "", 221 bool usecmt = true); 169 222 170 223 static void build_default_makefile ();
Note: See TracChangeset
for help on using the changeset viewer.