This report establishes specific rules for writing computer source code for use with the National Land-Change Modeling Framework (NLCMF). These specific rules consist of conventions and principles for writing code primarily in the C and C++ programming languages. Collectively, these coding conventions and coding principles create an NLCMF programming style. In addition to detailed naming conventions, this report provides general coding conventions and principles intended to facilitate the development of high-performance software implemented with code that is extensible, flexible, and interoperable. Conventions for developing modular code are explained in general terms and also enabled and demonstrated through the appended templates for C++ base source-code and header files. The NLCMF limited-extern approach to module structure, code inclusion, and cross-module access to data is both explained in the text and then illustrated through the module templates. Advice on the use of global variables is provided.
|Title||Coding conventions and principles for a National Land-Change Modeling Framework|
|Authors||David I. Donato|
|Publication Subtype||USGS Numbered Series|
|Series Title||Techniques and Methods|
|Record Source||USGS Publications Warehouse|
|USGS Organization||Eastern Geographic Science Center|