Przeglądaj źródła

ENH: Adding cmCustomCommandLine and cmCustomCommandLines subclasses of std::vector instantiations to represent multiple commands for a single custom command. These will be used in an upcoming checkin.

Brad King 21 lat temu
rodzic
commit
653bf6c25c
1 zmienionych plików z 18 dodań i 0 usunięć
  1. 18 0
      Source/cmStandardIncludes.h

+ 18 - 0
Source/cmStandardIncludes.h

@@ -263,4 +263,22 @@ struct cmDocumentationEntry
   const char* full;
 };
 
+/** Data structure to represent a single command line.  */
+class cmCustomCommandLine: public std::vector<std::string>
+{
+public:
+  typedef std::vector<std::string> Superclass;
+  typedef Superclass::iterator iterator;
+  typedef Superclass::const_iterator const_iterator;
+};
+
+/** Data structure to represent a list of command lines.  */
+class cmCustomCommandLines: public std::vector<cmCustomCommandLine>
+{
+public:
+  typedef std::vector<cmCustomCommandLine> Superclass;
+  typedef Superclass::iterator iterator;
+  typedef Superclass::const_iterator const_iterator;
+};
+
 #endif