Файл: Генерация программного кода C++.pdf

ВУЗ: Не указан

Категория: Курсовая работа

Дисциплина: Не указана

Добавлен: 23.04.2023

Просмотров: 110

Скачиваний: 3

ВНИМАНИЕ! Если данный файл нарушает Ваши авторские права, то обязательно сообщите нам.

Приложение А

Ли?стинг ко?да пр?иложения на яз?ыке С+?+

//?## be?gin module%1.2%.codegen_version pr?eserve=yes

// Re?ad th?e do?cumentation to le?arn mo?re ab?out C+?+ co?de ge?nerator

// versioning.

//?## en?d module%1.2%.codegen_version

//?## Mo?dule: Da?taBase%4557238F03A5; Ta?sk sp?ecification

//?## Su?bsystem: da?taBase%45571B6A0339

//?## So?urce fi?le: D:?\RR2000\Rose 2000\C++\source\dataBase\DataBase.h

#i?fndef Da?taBase_h

#d?efine Da?taBase_h 1

//?## be?gin module%4557238F03A5.additionalIncludes pr?eserve=no

//?## en?d module%4557238F03A5.additionalIncludes

//?## be?gin module%4557238F03A5.includes pr?eserve=yes

//?## en?d module%4557238F03A5.includes

// Ad?d/Select To?var

#i?nclude "F?orm\AddSelect To?var.h"

// Ad?d/Select Po?stav

#i?nclude "F?orm\AddSelect Po?stav.h"

// Ca?rd Sk?lad_Uche

#i?nclude "F?orm\Card Sk?lad_Uche.h"

//?## be?gin module%4557238F03A5.declarations pr?eserve=no

//?## en?d module%4557238F03A5.declarations

//?## be?gin module%4557238F03A5.additionalDeclarations pr?eserve=yes

//?## en?d module%4557238F03A5.additionalDeclarations

//?## be?gin DataBase%4553764E01EE.preface pr?eserve=yes

//?## en?d DataBase%4553764E01EE.preface

//?## Cl?ass: Da?taBase%4553764E01EE

//?## Ca?tegory: Da?taBase%455718440037

//?## Su?bsystem: da?taBase%45571B6A0339

//?## Pe?rsistence: Tr?ansient

//?## Ca?rdinality/Multiplicity: nD?ataBase

{/?/## be?gin DataBase%4553764E01EE.initialDeclarations pr?eserve=yes

//?## en?d Da?taBase%4553764E01EE.initialDeclarations:

//?## Co?nstructors (g?enerated)();(const Da?taBase &r?ight);

//?## De?structor (g?enerated)

~DataBase();

//?## Ot?her Op?erations (s?pecified)

//?## Op?eration: Qu?ery to Da?taBase%455376E8004B/Select To?var Qu?ery_to_DataBase ()?;

//?## Op?eration: Qu?ery to Da?taBase on ge?neration Sk?lad_Uchet ca?rd%455376EF009BSklad_Uchet Qu?ery_to_DataBase_on_generation_Sklad_Uchet_card ()?;

//?## Ge?t an?d Se?t Op?erations fo?r As?sociations (g?enerated)

//?## As?sociation: DB?-Card%45538D6F01DE

//?## Ro?le: Da?taBase::<the_Card_Sklad_Uchet>%45538D700027UnboundedSetByReference<Card_Sklad_Uchet> ge?t_the_Card_Sklad_Uchet () co?nst;set_the_Card_Sklad_Uchet (U?nboundedSetByReference<Card_Sklad_Uchet> va?lue);:

// Ad?ditional Pr?otected De?clarations

//?## be?gin DataBase%4553764E01EE.protected pr?eserve=yes

//?## en?d Da?taBase%4553764E01EE.protected:

//?## Ge?t an?d Se?t Op?erations fo?r Cl?ass At?tributes (g?enerated)

//?## At?tribute: ID?Card%45538A53012FInteger ge?t_IDCard () co?nst;set_IDCard (I?nteger va?lue);

//?## At?tribute: To?var%45538A5F028BString ge?t_Tovar () co?nst;set_Tovar (S?tring va?lue);

// Ad?ditional Pr?ivate De?clarations

//?## begin DataBase%4553764E01EE.private preserve=yes

//## end DataBase%4553764E01EE.private: //## implementation

// Data Members for Class Attributes

//## begin DataBase::IDCard%45538A53012F.attr preserve=no private: Integer {U}IDCard;

//## end DataBase::IDCard%45538A53012F.attr

//## begin DataBase::Tovar%45538A5F028B.attr preserve=no private: String {U}Tovar;

//## end DataBase::Tovar%45538A5F028B.attr

// Data Members for Associations

//## Association: DB-Card%45538D6F01DE

//## begin DataBase::<the_Card_Sklad_Uchet>%45538D700027.role preserve=no public: Card_Sklad_Uchet {0..n -> 1..nRHN}<Card_Sklad_Uchet> the_Card_Sklad_Uchet;

//## end DataBase::<the_Card_Sklad_Uchet>%45538D700027.role

// Additional Implementation Declarations

//## begin DataBase%4553764E01EE.implementation preserve=yes

//## end DataBase%4553764E01EE.implementation

};

//## begin DataBase%4553764E01EE.postscript preserve=yes

//## end DataBase%4553764E01EE.postscript

// Class DataBase

//## Get and Set Operations for Class Attributes (inline)const Integer DataBase::get_IDCard () const

{ //## begin DataBase::get_IDCard%45538A53012F.get preserve=noIDCard;

//## end DataBase::get_IDCard%45538A53012F.get