1 // File : FrontTrack_Utils.hxx
2 // Created : Tue Apr 25 17:23:33 2017
3 // Author : Edward AGAPOV (eap)
5 #ifndef __FrontTrack_Utils_HXX__
6 #define __FrontTrack_Utils_HXX__
8 #include "FrontTrack_Projector.hxx"
21 // Check if a file exists
22 bool fileExists( const std::string& path );
24 // Check if a file can be created/overwritten
25 bool canWrite( const std::string& path );
27 // Transform anything printable to a string
28 template< typename T> std::string toStr( const T& t )
35 //--------------------------------------------------------------------------------------------
37 * \brief Return projectors by group name
41 XaoGroups( const XAO::Xao* xao );
43 int getProjectors( const std::string& groupName,
45 const std::vector< FT_Projector > & allProjectors,
46 std::vector< const FT_Projector* > & groupProjectors ) const;
49 typedef std::multimap< std::string, XAO::Group* > TGroupByNameMap;
50 TGroupByNameMap _xaoGroups[ 2 ]; // by dim