TrajectoryImporter.h
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * ArmarX is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  *
8  * ArmarX is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * @package ArmarXGuiPlugins::RobotTrajectoryDesigner::ImportExport
17  * @author Liran Dattner
18  * @date 2018
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 #ifndef TRAJECTORYIMPORTER_H
23 #define TRAJECTORYIMPORTER_H
24 #include <Ice/Ice.h>
25 #include "DesignerImporter.h"
26 #include "../Environment.h"
27 namespace armarx
28 {
29  class TrajectoryImporter;
30  /**
31  * @class TrajectoryImporter
32  * @brief Imports instances of the DesignerTrajectory class out of a serialized instance of the Trajectory class from a target file.
33  */
34  class TrajectoryImporter : public DesignerImporter
35  {
36  private:
37  EnvironmentPtr environment;
38 
39  public:
41  /**
42  * @brief Import a serialized instance of the Trajectory class from the target file as a trajectory.
43  */
44  std::vector<DesignerTrajectoryPtr> importTrajectory(std::string file);
45  };
46 
47  using TrajectoryImporterPtr = std::shared_ptr<TrajectoryImporter>;
48 }
49 #endif // TRAJECTORYIMPORTER_H
armarx::TrajectoryImporter
Imports instances of the DesignerTrajectory class out of a serialized instance of the Trajectory clas...
Definition: TrajectoryImporter.h:34
armarx::TrajectoryImporter::TrajectoryImporter
TrajectoryImporter(EnvironmentPtr environment)
Definition: TrajectoryImporter.cpp:33
armarx::TrajectoryImporter::importTrajectory
std::vector< DesignerTrajectoryPtr > importTrajectory(std::string file)
Import a serialized instance of the Trajectory class from the target file as a trajectory.
Definition: TrajectoryImporter.cpp:38
armarx::EnvironmentPtr
std::shared_ptr< Environment > EnvironmentPtr
Definition: Environment.h:29
armarx::TrajectoryImporterPtr
std::shared_ptr< TrajectoryImporter > TrajectoryImporterPtr
Definition: TrajectoryImporter.h:47
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28