FrontISTR  5.7.0
Large-scale structural analysis program with finit element method
neu_reporter.cpp File Reference
#include <iostream>
#include <stdio.h>
#include "CNFData.h"
Include dependency graph for neu_reporter.cpp:

Go to the source code of this file.

Data Structures

class  ccmd_rec
 

Macros

#define str_cmd_help   "h"
 
#define help_cmd_help   "show command list"
 
#define str_cmd_quit   "quit"
 
#define help_cmd_quit   "quit"
 
#define str_cmd_save   "save"
 
#define help_cmd_save   "save"
 
#define str_cmd_open_outfile   "open"
 
#define help_cmd_open_outfile   "open output file"
 
#define str_cmd_close_outfile   "close"
 
#define help_cmd_close_outfile   "close output file"
 
#define str_cmd_write_summary   "s"
 
#define help_cmd_write_summary   "write summary of loaded neutral data"
 
#define str_cmd_write_block   "b"
 
#define help_cmd_write_block   "write data block"
 
#define GENERATE_CODE(x)
 

Functions

bool operator== (const ccmd_rec &a, const ccmd_rec &b)
 
bool operator< (const ccmd_rec &a, const ccmd_rec &b)
 
bool operator> (const ccmd_rec &a, const ccmd_rec &b)
 
void cmd_help ()
 
void cmd_quit ()
 
void cmd_save ()
 
void cmd_open_outfile ()
 
void cmd_close_outfile ()
 
void cmd_write_summary ()
 
void cmd_write_block ()
 
void regist_commands ()
 
bool execute_command (const char *name)
 
void command_line ()
 
void set_run_name (char *argv0)
 
void help ()
 
int main (int argc, char **argv)
 

Variables

char run_name [256]
 
CNFData data
 
FILE * wfp
 
bool fg_quit = false
 
set< ccmd_reccmd_list
 

Macro Definition Documentation

◆ GENERATE_CODE

#define GENERATE_CODE (   x)
Value:
{ \
ccmd_rec rec(str_##x, help_##x, x); \
cmd_list.insert(rec); \
}

◆ help_cmd_close_outfile

#define help_cmd_close_outfile   "close output file"

Definition at line 194 of file neu_reporter.cpp.

◆ help_cmd_help

#define help_cmd_help   "show command list"

Definition at line 129 of file neu_reporter.cpp.

◆ help_cmd_open_outfile

#define help_cmd_open_outfile   "open output file"

Definition at line 168 of file neu_reporter.cpp.

◆ help_cmd_quit

#define help_cmd_quit   "quit"

Definition at line 143 of file neu_reporter.cpp.

◆ help_cmd_save

#define help_cmd_save   "save"

Definition at line 149 of file neu_reporter.cpp.

◆ help_cmd_write_block

#define help_cmd_write_block   "write data block"

Definition at line 218 of file neu_reporter.cpp.

◆ help_cmd_write_summary

#define help_cmd_write_summary   "write summary of loaded neutral data"

Definition at line 206 of file neu_reporter.cpp.

◆ str_cmd_close_outfile

#define str_cmd_close_outfile   "close"

Definition at line 193 of file neu_reporter.cpp.

◆ str_cmd_help

#define str_cmd_help   "h"

Definition at line 128 of file neu_reporter.cpp.

◆ str_cmd_open_outfile

#define str_cmd_open_outfile   "open"

Definition at line 167 of file neu_reporter.cpp.

◆ str_cmd_quit

#define str_cmd_quit   "quit"

Definition at line 142 of file neu_reporter.cpp.

◆ str_cmd_save

#define str_cmd_save   "save"

Definition at line 148 of file neu_reporter.cpp.

◆ str_cmd_write_block

#define str_cmd_write_block   "b"

Definition at line 217 of file neu_reporter.cpp.

◆ str_cmd_write_summary

#define str_cmd_write_summary   "s"

Definition at line 205 of file neu_reporter.cpp.

Function Documentation

◆ cmd_close_outfile()

void cmd_close_outfile ( )

Definition at line 195 of file neu_reporter.cpp.

Here is the caller graph for this function:

◆ cmd_help()

void cmd_help ( )

Definition at line 130 of file neu_reporter.cpp.

Here is the caller graph for this function:

◆ cmd_open_outfile()

void cmd_open_outfile ( )

Definition at line 169 of file neu_reporter.cpp.

Here is the caller graph for this function:

◆ cmd_quit()

void cmd_quit ( )

Definition at line 144 of file neu_reporter.cpp.

Here is the caller graph for this function:

◆ cmd_save()

void cmd_save ( )

Definition at line 150 of file neu_reporter.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cmd_write_block()

void cmd_write_block ( )

Definition at line 219 of file neu_reporter.cpp.

Here is the caller graph for this function:

◆ cmd_write_summary()

void cmd_write_summary ( )

Definition at line 207 of file neu_reporter.cpp.

Here is the caller graph for this function:

◆ command_line()

void command_line ( )

Definition at line 264 of file neu_reporter.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ execute_command()

bool execute_command ( const char *  name)

Definition at line 249 of file neu_reporter.cpp.

Here is the caller graph for this function:

◆ help()

void help ( )

Definition at line 287 of file neu_reporter.cpp.

Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 293 of file neu_reporter.cpp.

Here is the call graph for this function:

◆ operator<()

bool operator< ( const ccmd_rec a,
const ccmd_rec b 
)
inline

Definition at line 115 of file neu_reporter.cpp.

◆ operator==()

bool operator== ( const ccmd_rec a,
const ccmd_rec b 
)
inline

Definition at line 112 of file neu_reporter.cpp.

◆ operator>()

bool operator> ( const ccmd_rec a,
const ccmd_rec b 
)
inline

Definition at line 119 of file neu_reporter.cpp.

◆ regist_commands()

void regist_commands ( )

Definition at line 229 of file neu_reporter.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_run_name()

void set_run_name ( char *  argv0)

Definition at line 285 of file neu_reporter.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ cmd_list

set<ccmd_rec> cmd_list

Definition at line 88 of file neu_reporter.cpp.

◆ data

CNFData data

Definition at line 18 of file neu_reporter.cpp.

◆ fg_quit

bool fg_quit = false

Definition at line 75 of file neu_reporter.cpp.

◆ run_name

char run_name[256]

Definition at line 17 of file neu_reporter.cpp.

◆ wfp

FILE* wfp

Definition at line 19 of file neu_reporter.cpp.