Changeset 217 in tmcsimulator for branches/FEPSimulator/FEPSim.h


Ignore:
Timestamp:
11/02/2017 10:53:38 PM (9 years ago)
Author:
jtorres
Message:

Implemented logging into FEPSimulator. Now logs output into FEPSimLog.txt. Error messages are still output to console so you know immediately if there is an error. The log file is cleared upon FEPSim start-up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/FEPSimulator/FEPSim.h

    r214 r217  
    3333#include "fep.h" 
    3434#include <iostream> 
     35#include <fstream> 
    3536#include <stdio.h> 
    3637#include <stdlib.h> 
     
    4445 
    4546const int BUFF_SIZE = 1266341; 
    46  
     47const string FEPLogFileName = "FEPSimLog.txt"; 
     48static ofstream FEPLogFile; 
     49     
    4750class FEPSim { 
    4851public: 
     
    8487    int FEP_REV; 
    8588    int SOCK_PORT; 
    86  
     89     
    8790    /** 
    8891     * Handler for the ATMS RPC Response (to the client RPC Call) 
     
    102105     */ 
    103106    void sendReplys(char * xml); 
    104  
     107     
    105108}; 
    106109 
Note: See TracChangeset for help on using the changeset viewer.