WARPXM v1.10.0
Loading...
Searching...
No Matches
app_base.h
Go to the documentation of this file.
1#ifndef WXM_APP_BASE_H
2#define WXM_APP_BASE_H
3
4#include "warpxm/warpxm_config.h"
5
6#include "lib/wxcryptset.h"
7#include "lib/wxlogstream.h"
8
9#include <vector>
10#include <string>
11
12namespace wxm
13{
15{
16protected:
17 virtual ~app_base() = default;
18
19public:
20 class Application_Variable : public std::vector<int>
21 {
22 protected:
23 public:
26 const std::string& variableName,
27 const int numComponents = -1);
28
29 std::vector<int> getIndexes() const
30 {
31 return *this;
32 }
33 };
34
35 static std::vector<int> empty;
36
37 virtual const std::vector<int>& getInputVariableIndexes(int flag = 0) const
38 {
39 return empty;
40 }
41
42 virtual const std::vector<int>& getOutputVariableIndexes(int flag = 0) const
43 {
44 return empty;
45 }
46};
47} // namespace wxm
48
49#endif
WxCryptSet extends WxCrypt by providing, in addition to name-value pairs, an set of named WxCryptSets...
Definition: wxcryptset.h:35
Definition: app_base.h:21
std::vector< int > getIndexes() const
Definition: app_base.h:29
Application_Variable(const WxCryptSet &wxc, const std::string &variableName, const int numComponents=-1)
Definition: app_base.h:15
virtual ~app_base()=default
static std::vector< int > empty
Definition: app_base.h:35
virtual const std::vector< int > & getInputVariableIndexes(int flag=0) const
Definition: app_base.h:37
virtual const std::vector< int > & getOutputVariableIndexes(int flag=0) const
Definition: app_base.h:42
Base namespace for everything not included in the global namespace.
Definition: field_source.h:8