0% found this document useful (0 votes)
23 views

OpenDB AddFieldsInDbObjects

The document describes the steps to add a new field called _pitchDiag to the DbTechLayer object in a database. The steps include: 1) adding the field to the .h file, 2) defining a revision number keyword, 3) setting the current revision number, 4) conditionally streaming in the new field, 5) conditionally streaming out the new field, 6) conditionally diffing the new field, 7) conditionally diffing out the new field, 8) creating access APIs for the field, and 9) adding the new APIs to the include file.

Uploaded by

sam.sarkar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

OpenDB AddFieldsInDbObjects

The document describes the steps to add a new field called _pitchDiag to the DbTechLayer object in a database. The steps include: 1) adding the field to the .h file, 2) defining a revision number keyword, 3) setting the current revision number, 4) conditionally streaming in the new field, 5) conditionally streaming out the new field, 6) conditionally diffing the new field, 7) conditionally diffing out the new field, 8) creating access APIs for the field, and 9) adding the new APIs to the include file.

Uploaded by

sam.sarkar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Adding new fields in DB Objects Example: add _pitchDiag in object DbTechLayer

Action File
1 Add Fields at the .h file dbTechLayer.h

2 Define a keyword for db rev number dbDatabase.h

3 Set the current rev number same as dbDatabase.h

4 Stream in new fileds Conditionally upon Schema number dbTechLayer.cpp

5 Stream out new fileds Conditionally upon Schema number dbTechLayer.cpp

6 Conditionally Diff new fields dbTechLayer.cpp

7 Conditionally Diff Out new fields dbTechLayer.cpp

8 Created access APIs to the fieldsZZ dbTechLayer.cpp

9 Add new APIs in include/db.h db.h


d _pitchDiag in object DbTechLayer

Source Code

#define ADS_DB_DF58 52

#define ADS_DB_SCHEMA_MINOR 52

if ( stream.getDatabase()->isSchema(ADS_DB_DF58) ) { stream >> layer._pitchDiag;

if ( stream.getDatabase()->isSchema(ADS_DB_DF58) ) { stream << layer._pitchDiag;

if ( stream.getDatabase()->isSchema(ADS_DB_DF58) ) { DIFF_FIELD(_pitchDiag);

if ( stream.getDatabase()->isSchema(ADS_DB_DF58) ) { DIFF_OUT_FIELD(_pitchDiag);

dbTechLayer::getPitchDiag(), dbTechLayer::setPitchDiag( int pitch )

class dbTechLayer

You might also like