#include "build.h" // Schema_instance : Schema_location | // Schema // *common* . void Schema_instance::create_schema( Cd_graph* & iCd_graph ) { DEM_TRACE("Schema_instance","void Schema_instance::create_schema(Cd_graph* & iCd_graph)"); #ifndef NOTRACE DemTrace demTraceEmptyMethod(__FILE__,__LINE__,"Schema_instance",form(" at %s , *** PREMATURELY TERMINATED *** ", this->get_type())); #endif } // Schema = Cd_graph . void Schema::create_schema( Cd_graph* & iCd_graph ) { DEM_TRACE("Schema","void Schema::create_schema(Cd_graph* & iCd_graph)"); // variables for carrying in and out // assignments for carrying in // prefix class wrappers // outgoing calls // construction edge prefix wrappers this->get_schema()->create_schema( iCd_graph ); // construction edge suffix wrappers // suffix class wrappers // assignments for carrying out } // Schema_location = File_name . void Schema_location::create_schema( Cd_graph* & iCd_graph ) { DEM_TRACE("Schema_location","void Schema_location::create_schema(Cd_graph* & iCd_graph)"); // variables for carrying in and out // assignments for carrying in // prefix class wrappers // outgoing calls // construction edge prefix wrappers this->get_location()->create_schema( iCd_graph ); // construction edge suffix wrappers // suffix class wrappers // assignments for carrying out } // File_name = DemString . void File_name::create_schema( Cd_graph* & iCd_graph ) { DEM_TRACE("File_name","void File_name::create_schema(Cd_graph* & iCd_graph)"); // variables for carrying in and out // assignments for carrying in // prefix class wrappers Cd_graph * r; Cd_graph * cdg = new Cd_graph(); char buf[MAXDIRLEN]; assert( (cdg != NULL) && (buf != NULL) ); strcpy(buf,this->get_name()->get_val()); if (buf[0] != '/') absolutename(buf); polishpath(buf); cout << toolname << ": parsing the schema object from " << buf << " ..." << endl; r = (Cd_graph*)cdg->g_parse(buf); if (r == NULL) delete cdg; iCd_graph = r; // outgoing calls // suffix class wrappers // assignments for carrying out } // Instantiation = "*build*" // Instantiation_name // "*schema*" // Schema_instance // [ Meta_def ] // [ CppCode ] // [ CppCode ] // "*main*" // CppCode // Pps // Comps // Inst_paths // Ext_libs // "*end*" // [ Instantiation_name ] . void Instantiation::create_schema( Cd_graph* & iCd_graph ) { DEM_TRACE("Instantiation","void Instantiation::create_schema(Cd_graph* & iCd_graph)"); // variables for carrying in and out // assignments for carrying in // prefix class wrappers // outgoing calls // construction edge prefix wrappers this->get_schema_inst()->create_schema( iCd_graph ); // construction edge suffix wrappers // suffix class wrappers // assignments for carrying out } // Cd_graph = Adjacency_Nlist // [ DemNumber ] // [ DemNumber ] // [ Adjacency_List ] // [ SCC_component_List ] // [ Vertex_Commalist ] . void Cd_graph::create_schema( Cd_graph* & iCd_graph ) { DEM_TRACE("Cd_graph","void Cd_graph::create_schema(Cd_graph* & iCd_graph)"); // variables for carrying in and out // assignments for carrying in // prefix class wrappers iCd_graph = this; // outgoing calls // suffix class wrappers // assignments for carrying out }