Mercurial > irccd
comparison extern/vera/src/plugins/Profiles.h @ 548:a7c0eb100760
CMake: import vera++ 1.3.0, closes #729
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 22 Nov 2017 20:10:03 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
547:a95954e53589 | 548:a7c0eb100760 |
---|---|
1 // | |
2 // Copyright (C) 2006-2007 Maciej Sobczak | |
3 // Distributed under the Boost Software License, Version 1.0. | |
4 // (See accompanying file LICENSE_1_0.txt or copy at | |
5 // http://www.boost.org/LICENSE_1_0.txt) | |
6 // | |
7 | |
8 #ifndef PROFILES_H_INCLUDED | |
9 #define PROFILES_H_INCLUDED | |
10 | |
11 #include <string> | |
12 #include <stdexcept> | |
13 #include <vector> | |
14 #include "Rules.h" | |
15 | |
16 | |
17 namespace Vera | |
18 { | |
19 namespace Plugins | |
20 { | |
21 | |
22 | |
23 class ProfileError : public std::runtime_error | |
24 { | |
25 public: | |
26 ProfileError(const std::string & msg) : std::runtime_error(msg) {} | |
27 }; | |
28 | |
29 class Profiles | |
30 { | |
31 public: | |
32 typedef std::string ProfileName; | |
33 typedef std::vector<Vera::Plugins::Rules::RuleName> RuleNameCollection; | |
34 | |
35 static void executeProfile(const ProfileName & name); | |
36 static RuleNameCollection getListOfScriptNamesTcl( | |
37 const Vera::Plugins::Profiles::ProfileName & profile); | |
38 static RuleNameCollection getListOfScriptNamesKeys( | |
39 const Vera::Plugins::Profiles::ProfileName & profile); | |
40 static RuleNameCollection getListOfScriptNames( | |
41 const Vera::Plugins::Profiles::ProfileName & profile); | |
42 }; | |
43 | |
44 } // namespace Plugins | |
45 | |
46 } // namespace Vera | |
47 | |
48 #endif // PROFILES_H_INCLUDED |