C_runtime/PLCObject.hpp
changeset 4007 76dede1e3403
parent 3977 2b0f8c4c8d02
child 4032 1ffff67678ad
equal deleted inserted replaced
4006:e16c8443e877 4007:76dede1e3403
    69         uint32_t ResetLogCount(void);
    69         uint32_t ResetLogCount(void);
    70         uint32_t SeedBlob(const binary_t * seed, binary_t * blobID);
    70         uint32_t SeedBlob(const binary_t * seed, binary_t * blobID);
    71         uint32_t SetTraceVariablesList(const list_trace_order_1_t * orders, int32_t * debugtoken);
    71         uint32_t SetTraceVariablesList(const list_trace_order_1_t * orders, int32_t * debugtoken);
    72         uint32_t StartPLC(void);
    72         uint32_t StartPLC(void);
    73         uint32_t StopPLC(bool * success);
    73         uint32_t StopPLC(bool * success);
       
    74 
       
    75         // Public interface used by runtime
    74         uint32_t AutoLoad();
    76         uint32_t AutoLoad();
       
    77         uint32_t LogMessage(uint8_t level, std::string message);
    75 
    78 
    76     private:
    79     private:
    77         // A map of all the blobs
    80         // A map of all the blobs
    78         std::map<std::vector<uint8_t>, Blob*> m_mapBlobIDToBlob;
    81         std::map<std::vector<uint8_t>, Blob*> m_mapBlobIDToBlob;
    79 
    82 
   110         std::vector<trace_sample> m_traces;
   113         std::vector<trace_sample> m_traces;
   111 
   114 
   112         uint32_t BlobAsFile(const binary_t * BlobID, std::filesystem::path filename);
   115         uint32_t BlobAsFile(const binary_t * BlobID, std::filesystem::path filename);
   113         uint32_t LoadPLC(void);
   116         uint32_t LoadPLC(void);
   114         uint32_t UnLoadPLC(void);
   117         uint32_t UnLoadPLC(void);
   115         uint32_t LogMessage(uint8_t level, std::string message);
       
   116         uint32_t PurgePLC(void);
   118         uint32_t PurgePLC(void);
   117         void PurgeTraceBuffer(void);
   119         void PurgeTraceBuffer(void);
   118         void TraceThreadProc(void);
   120         void TraceThreadProc(void);
   119 };
   121 };
   120 
   122