Skip to main content
U.S. flag

An official website of the United States government

Coding conventions and principles for a National Land-Change Modeling Framework

July 14, 2017

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.

Publication Year 2017
Title Coding conventions and principles for a National Land-Change Modeling Framework
DOI 10.3133/tm6F1
Authors David I. Donato
Publication Type Report
Publication Subtype USGS Numbered Series
Series Title Techniques and Methods
Series Number 6-F1
Index ID tm6F1
Record Source USGS Publications Warehouse
USGS Organization Eastern Geographic Science Center