-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #988 from slaclab/device-tree-doc
Initial capture of the pyrogue tree documentation
- Loading branch information
Showing
12 changed files
with
424 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.. _pyrogue_tree: | ||
|
||
================ | ||
PyRogue Tree | ||
================ | ||
|
||
The PyRogue Tree implements a tree structure for the hierarchical organization of devices ... | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:caption: Using Nodes In The PyRogue Tree: | ||
|
||
node/index | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
.. _pyrogue_tree_node_command: | ||
|
||
======= | ||
Command | ||
======= | ||
|
||
The Command class ... | ||
|
||
In this example ... | ||
|
||
Python Command Example | ||
====================== | ||
|
||
Below is an example of creating a Command which ... | ||
|
||
.. code-block:: python | ||
import pyrogue | ||
# Create a subclass of a command | ||
class MyCommand(...): | ||
C++ Command Example | ||
=================== | ||
|
||
Below is an example of creating a Command device in C++. | ||
|
||
.. code-block:: c | ||
#include <rogue/interfaces/memory/Constants.h> | ||
#include <boost/thread.hpp> | ||
// Create a subclass of a command | ||
class MyCommand : public rogue:: ... { | ||
public: | ||
protected: | ||
}; | ||
A few notes on the above examples ... | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:caption: Types Of Commands In The PyRogue Tree: | ||
|
||
local_command/index | ||
remote_command/index | ||
|
42 changes: 42 additions & 0 deletions
42
docs/src/pyrogue_tree/node/command/local_command/index.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
.. _pyrogue_tree_node_command_local_command: | ||
|
||
============ | ||
LocalCommand | ||
============ | ||
|
||
The LocalCommand class ... | ||
|
||
In this example ... | ||
|
||
Python LocalCommand Example | ||
=========================== | ||
|
||
Below is an example of creating a LocalCommand which ... | ||
|
||
.. code-block:: python | ||
import pyrogue | ||
# Create a subclass of a LocalCommand | ||
class MyLocalCommand(...): | ||
C++ LocalCommand Example | ||
======================== | ||
|
||
Below is an example of creating a LocalCommand device in C++. | ||
|
||
.. code-block:: c | ||
#include <rogue/interfaces/memory/Constants.h> | ||
#include <boost/thread.hpp> | ||
// Create a subclass of a LocalCommand | ||
class MyLocalCommand : public rogue:: ... { | ||
public: | ||
protected: | ||
}; | ||
A few notes on the above examples ... | ||
|
42 changes: 42 additions & 0 deletions
42
docs/src/pyrogue_tree/node/command/remote_command/index.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
.. _pyrogue_tree_node_command_remote_command: | ||
|
||
============= | ||
RemoteCommand | ||
============= | ||
|
||
The RemoteCommand class ... | ||
|
||
In this example ... | ||
|
||
Python RemoteCommand Example | ||
============================ | ||
|
||
Below is an example of creating a RemoteCommand which ... | ||
|
||
.. code-block:: python | ||
import pyrogue | ||
# Create a subclass of a RemoteCommand | ||
class MyRemoteCommand(...): | ||
C++ RemoteCommand Example | ||
========================= | ||
|
||
Below is an example of creating a RemoteCommand device in C++. | ||
|
||
.. code-block:: c | ||
#include <rogue/interfaces/memory/Constants.h> | ||
#include <boost/thread.hpp> | ||
// Create a subclass of a RemoteCommand | ||
class MyRemoteCommand : public rogue:: ... { | ||
public: | ||
protected: | ||
}; | ||
A few notes on the above examples ... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
.. _pyrogue_tree_node_device: | ||
|
||
====== | ||
Device | ||
====== | ||
|
||
The Device class ... | ||
|
||
In this example ... | ||
|
||
Python Device Example | ||
===================== | ||
|
||
Below is an example of creating a Device which ... | ||
|
||
.. code-block:: python | ||
import pyrogue | ||
# Create a subclass of a Device | ||
class MyDevice(...): | ||
C++ Device Example | ||
================== | ||
|
||
Below is an example of creating a Device class in C++. | ||
|
||
.. code-block:: c | ||
#include <rogue/interfaces/memory/Constants.h> | ||
#include <boost/thread.hpp> | ||
// Create a subclass of a Device | ||
class MyDevice : public rogue:: ... { | ||
public: | ||
protected: | ||
}; | ||
A few notes on the above examples ... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.. _pyrogue_tree_node: | ||
|
||
==== | ||
Node | ||
==== | ||
|
||
The Node class is the base class of all devices ... | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:caption: Types Of Nodes In The PyRogue Tree: | ||
|
||
root/index | ||
device/index | ||
command/index | ||
variable/index | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
.. _pyrogue_tree_node_root: | ||
|
||
==== | ||
Root | ||
==== | ||
|
||
The Root class ... | ||
|
||
In this example ... | ||
|
||
Python Root Example | ||
=================== | ||
|
||
Below is an example of creating a root which ... | ||
|
||
.. code-block:: python | ||
import pyrogue | ||
# Create a subclass of a root | ||
class MyRoot(...): | ||
C++ Root Example | ||
================ | ||
|
||
Below is an example of creating a root device in C++. | ||
|
||
.. code-block:: c | ||
#include <rogue/interfaces/memory/Constants.h> | ||
#include <boost/thread.hpp> | ||
// Create a subclass of a root | ||
class MyRoot : public rogue:: ... { | ||
public: | ||
protected: | ||
}; | ||
A few notes on the above examples ... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
.. _pyrogue_tree_node_variable: | ||
|
||
======== | ||
Variable | ||
======== | ||
|
||
The Variable class ... | ||
|
||
In this example ... | ||
|
||
Python Variable Example | ||
======================= | ||
|
||
Below is an example of creating a Variable which ... | ||
|
||
.. code-block:: python | ||
import pyrogue | ||
# Create a subclass of a Variable | ||
class MyVariable(...): | ||
C++ Variable Example | ||
==================== | ||
|
||
Below is an example of creating a Variable device in C++. | ||
|
||
.. code-block:: c | ||
#include <rogue/interfaces/memory/Constants.h> | ||
#include <boost/thread.hpp> | ||
// Create a subclass of a Variable | ||
class MyVariable : public rogue:: ... { | ||
public: | ||
protected: | ||
}; | ||
A few notes on the above examples ... | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:caption: Types Of Variables In The PyRogue Tree: | ||
|
||
link_variable/index | ||
local_variable/index | ||
remote_variable/index |
42 changes: 42 additions & 0 deletions
42
docs/src/pyrogue_tree/node/variable/link_variable/index.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
.. _pyrogue_tree_node_variable_link_variable: | ||
|
||
============ | ||
LinkVariable | ||
============ | ||
|
||
The LinkVariable class ... | ||
|
||
In this example ... | ||
|
||
Python LinkVariable Example | ||
=========================== | ||
|
||
Below is an example of creating a LinkVariable which ... | ||
|
||
.. code-block:: python | ||
import pyrogue | ||
# Create a subclass of a LinkVariable | ||
class MyLinkVariable(...): | ||
C++ LinkVariable Example | ||
======================== | ||
|
||
Below is an example of creating a LinkVariable device in C++. | ||
|
||
.. code-block:: c | ||
#include <rogue/interfaces/memory/Constants.h> | ||
#include <boost/thread.hpp> | ||
// Create a subclass of a LinkVariable | ||
class MyLinkVariable : public rogue:: ... { | ||
public: | ||
protected: | ||
}; | ||
A few notes on the above examples ... | ||
|
42 changes: 42 additions & 0 deletions
42
docs/src/pyrogue_tree/node/variable/local_variable/index.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
.. _pyrogue_tree_node_variable_local_variable: | ||
|
||
============= | ||
LocalVariable | ||
============= | ||
|
||
The LocalVariable class ... | ||
|
||
In this example ... | ||
|
||
Python LocalVariable Example | ||
============================ | ||
|
||
Below is an example of creating a LocalVariable which ... | ||
|
||
.. code-block:: python | ||
import pyrogue | ||
# Create a subclass of a LocalVariable | ||
class MyLocalVariable(...): | ||
C++ LocalVariable Example | ||
========================= | ||
|
||
Below is an example of creating a LocalVariable device in C++. | ||
|
||
.. code-block:: c | ||
#include <rogue/interfaces/memory/Constants.h> | ||
#include <boost/thread.hpp> | ||
// Create a subclass of a LocalVariable | ||
class MyLocalVariable : public rogue:: ... { | ||
public: | ||
protected: | ||
}; | ||
A few notes on the above examples ... | ||
|
Oops, something went wrong.