Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Coffee corner » Automatic generation of SCH-file from UML
Automatic generation of SCH-file from UML [message #22982] Fri, 04 September 2009 14:26 Go to previous message
sergeynikitin is currently offline  sergeynikitin
Messages: 746
Registered: January 2008
Location: Moscow, Russia
Contributor

I do not know in what forum section to put this topic.

I made for myself adapting to the program Dia, that it can generate code sch-file on UML diagrams.

Example of the complex structure of the tables, such as here,
index.php?t=getfile&id=1911&private=0

you can immediately get ready sch file in the form:

//======================================================================================//
//											//
//			COMPANY								//
//											//
//======================================================================================//
TABLE_(COMPANY)
#ifdef MYSQL_DB
	TABLE_SUFFIX("CHARACTER SET utf8 COLLATE utf8_general_ci\n")
#endif
	INT_	(COM_ID) PRIMARY_KEY AUTO_INCREMENT
	INT_	(COM_GROUPID)
	STRING_ (COM_NAME,500)
	STRING_ (COM_INN,500)
	STRING_ (COM_KPP,500)
	STRING_ (COM_COMMENT,500)
END_TABLE

//======================================================================================//
//											//
//			ACCOUNT								//
//											//
//======================================================================================//
TABLE_(ACCOUNT)
#ifdef MYSQL_DB
	TABLE_SUFFIX("CHARACTER SET utf8 COLLATE utf8_general_ci\n")
#endif
	INT_ 	(ACC_ID)
	INT_	(ACC_CORRID)
	INT_	(ACC_BANKID)
	STRING_ (ACC_NAME,500)
	STRING_ (ACC_ACCOUNT,100)
	STRING_ (ACC_COMMENT,500)
END_TABLE

//======================================================================================//
//											//
//			BANK								//
//											//
//======================================================================================//
TABLE_(BANK)
#ifdef MYSQL_DB
	TABLE_SUFFIX("CHARACTER SET utf8 COLLATE utf8_general_ci\n")
#endif
	INT_	(BNK_ID)
	STRING_	(BNK_NAME,500)
	STRING_	(BNK_BIK,100)
	STRING_	(BNK_CORRACCOUNT,100)
END_TABLE

....
....
The same description of the other files.
....
....






SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}

[Updated on: Fri, 04 September 2009 14:29]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: What do you do first when you start developing an application?
Next Topic: Help me buy a notebook!
Goto Forum:
  


Current Time: Mon Dec 06 15:41:29 CET 2021

Total time taken to generate the page: 0.01431 seconds