ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
model51.cpp
Go to the documentation of this file.
1 
5 #include <admodel.h>
6 
13 void init_adstring::allocate(const char* name_tag)
14 {
16  model_name_tag::allocate(name_tag);
17  *(ad_comm::global_datafile) >> *this;
18 }
25 void init_line_adstring::allocate(const char* name_tag)
26 {
28  model_name_tag::allocate(name_tag);
29 
31 
32  char line[256];
34  static_cast<adstring&>(*this) = adstring(line);
35 }
void allocate(const char *s="UNNAMED")
Allocate init_line_adstring with id name_tag, then assign input string from opened ad_comm::global_da...
Definition: model51.cpp:25
void allocate(const char *s)
Definition: model.cpp:112
cifstream & getline(char *, int, char= '\n')
Definition: cifstrem.cpp:473
void filter()
Move file pointer past comments and empty lines to next data field.
Definition: cifstrem.cpp:124
void check_datafile_pointer(void *p)
Exits if p is null.
Definition: model.cpp:560
Description not yet available.
void allocate(const char *s="UNNAMED")
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Definition: model51.cpp:13
static cifstream * global_datafile
Definition: fvar.hpp:8856
adstring()
Default constructor.
Definition: string3.cpp:33