Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
write_stan.hpp
Go to the documentation of this file.
1 #ifndef STAN__COMMON__WRITE_STAN_HPP
2 #define STAN__COMMON__WRITE_STAN_HPP
3 
4 #include <ostream>
5 #include <string>
6 #include <stan/version.hpp>
7 
8 namespace stan {
9 
10  namespace common {
11 
12  void write_stan(std::ostream* s, const std::string prefix = "") {
13  if (!s) return;
14 
15  *s << prefix << " stan_version_major = " << stan::MAJOR_VERSION << std::endl;
16  *s << prefix << " stan_version_minor = " << stan::MINOR_VERSION << std::endl;
17  *s << prefix << " stan_version_patch = " << stan::PATCH_VERSION << std::endl;
18  }
19 
20  } // namespace common
21 
22 } // namespace stan
23 
24 #endif
void write_stan(std::ostream *s, const std::string prefix="")
Definition: write_stan.hpp:12
const std::string MINOR_VERSION
Minor version number for Stan package.
Definition: version.hpp:12
const std::string PATCH_VERSION
Patch version for Stan package.
Definition: version.hpp:15
const std::string MAJOR_VERSION
Major version number for Stan package.
Definition: version.hpp:9

     [ Stan Home Page ] © 2011–2014, Stan Development Team.