Free Electron
AsBox.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #pragma once
8 
9 namespace fe
10 {
11 namespace ext
12 {
13 
14 /**
15  * Test-only.
16  *
17  * Accessor Set for a simple box record.
18  */
19 class AsBox :
20  public AsNamed,
21  public Initialize<AsBox>
22 {
23 public:
24  void initialize()
25  {
26  add(transform, FE_USE("transform"));
27  add(size, FE_USE("size"));
28  }
29 
30  /** Transform of box. */
32  /** Size of box. */
34 };
35 
36 } /* namespace ext */
37 } /* namespace fe */
kernel
Definition: namespace.dox:3
Per-class participation in the Initialized <> mechanism.
Definition: Initialized.h:117
The main data access class for the data system.
Definition: Accessor.h:128
Accessor< SpatialVector > size
Size of box.
Definition: AsBox.h:33
Named Records.
Definition: datatoolAS.h:134
Test-only.
Definition: AsBox.h:19
Accessor< SpatialTransform > transform
Transform of box.
Definition: AsBox.h:31