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 
26 #include "../Environment.h"
27 #include "DesignerImporter.h"
28 
29 namespace armarx
30 {
31  class TrajectoryImporter;
32 
33  /**
34  * @class TrajectoryImporter
35  * @brief Imports instances of the DesignerTrajectory class out of a serialized instance of the Trajectory class from a target file.
36  */
37  class TrajectoryImporter : public DesignerImporter
38  {
39  private:
40  EnvironmentPtr environment;
41 
42  public:
44  /**
45  * @brief Import a serialized instance of the Trajectory class from the target file as a trajectory.
46  */
47  std::vector<DesignerTrajectoryPtr> importTrajectory(std::string file);
48  };
49 
50  using TrajectoryImporterPtr = std::shared_ptr<TrajectoryImporter>;
51 } // namespace armarx
52 #endif // TRAJECTORYIMPORTER_H
armarx::TrajectoryImporter
Imports instances of the DesignerTrajectory class out of a serialized instance of the Trajectory clas...
Definition: TrajectoryImporter.h:37
armarx::TrajectoryImporter::TrajectoryImporter
TrajectoryImporter(EnvironmentPtr environment)
Definition: TrajectoryImporter.cpp:38
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:44
armarx::EnvironmentPtr
std::shared_ptr< Environment > EnvironmentPtr
Definition: Environment.h:29
armarx::TrajectoryImporterPtr
std::shared_ptr< TrajectoryImporter > TrajectoryImporterPtr
Definition: TrajectoryImporter.h:50
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:27