OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
BlockHandlerFileWriter.h
Go to the documentation of this file.
1#pragma once
2#include "BlockHandler.h"
4#include <fstream>
5
7{
8public:
9 BlockHandlerFileWriter(EntityBlockFileWriter* blockEntity, const HandlerMap& handlerMap);
10 virtual bool executeSpecialized() override;
12private:
13 ot::Connector m_input;
14 std::string m_headline;
15 std::string m_filePath;
16 std::string m_fileName;
17 std::ios_base::openmode m_openMode = std::ios_base::out;
18 std::ofstream m_fileStream;
19
20 void streamVariable(std::ofstream& stream, const ot::Variable& value);
21};
bsoncxx::types::value value
Definition DocumentManager.h:16
Definition BlockHandlerFileWriter.h:7
BlockHandlerFileWriter(EntityBlockFileWriter *blockEntity, const HandlerMap &handlerMap)
Definition BlockHandlerFileWriter.cpp:8
~BlockHandlerFileWriter()
Definition BlockHandlerFileWriter.cpp:111
virtual bool executeSpecialized() override
Definition BlockHandlerFileWriter.cpp:30
Definition BlockHandler.h:10
std::map< std::shared_ptr< GraphNode >, std::shared_ptr< BlockHandler > > HandlerMap
Definition BlockHandler.h:12
Definition Variable.h:107