Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

IDocumentForm.h

Go to the documentation of this file.
00001 /**
00002 * @file         IDocumentForm.h
00003 * @brief    2つの文書を使用してフォームのように扱うインターフェイス
00004 *
00005 * @author       Nakashima h
00006 * @date     2022-02-02
00007 *
00008 * $Id: IDocumentForm.h 32 2022-07-14 03:20:43Z shingo.yoneda $
00009 *
00010 * Copyright (c) 2022 Antenna House, Inc. All rights reserved.
00011 */
00012 
00013 #pragma once
00014 #include <queue>
00015 #include <memory>
00016 #include <string>
00017 
00018 #include "FormData.h"
00019 
00020 /**
00021 * @brief    データ取得を行う
00022 */
00023 class IDocumentForm
00024 {
00025 protected:
00026     /**
00027     * @brief    デフォルトコンストラクタ
00028     */
00029     IDocumentForm() = default;
00030 
00031     /**
00032     * @brief    コピーコンストラクタ
00033     */
00034     IDocumentForm(const IDocumentForm&) = delete;
00035 
00036     /**
00037     * @brief    コピー代入演算子
00038     */
00039     IDocumentForm& operator=(const IDocumentForm&) = delete;
00040 
00041     /**
00042     * @brief    ムーブコンストラクタ
00043     */
00044     IDocumentForm(IDocumentForm&&) = delete;
00045 
00046     /**
00047     * @brief    ムーブ代入演算子
00048     */
00049     IDocumentForm& operator=(IDocumentForm&&) = delete;
00050 
00051 public:
00052     /**
00053     * @brief    デストラクタ
00054     */
00055     virtual ~IDocumentForm() = default;
00056 
00057     /**
00058     * @brief    データ取得を実行するオブジェクトを生成する
00059     */
00060     static std::unique_ptr<IDocumentForm> create();
00061 
00062     /**
00063     * @brief    フォームデータを取得する
00064     * @param    templateFilePath - テンプレートファイルのパス
00065     * @param    submittedFilePath - 記入済みファイルのパス
00066     * @return   フォームデータ
00067     */
00068     virtual std::vector<std::unique_ptr<FormData>> GetFormDatas(std::string const& templateFilePath, std::string const& submittedFilePath) = 0;
00069 };

Generated on 19 Jan 2023 for Word API C/C++ Interface by Doxygen 1.3-rc2