Skip to content

Commit

Permalink
Merge pull request #988 from slaclab/device-tree-doc
Browse files Browse the repository at this point in the history
Initial capture of the pyrogue tree documentation
  • Loading branch information
bengineerd authored Mar 5, 2024
2 parents becb286 + 0249f0f commit 455967d
Show file tree
Hide file tree
Showing 12 changed files with 424 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/src/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ branch of Rogue. New documentation is being added incrementally over time.
:caption: Contents:

installing/index
pyrogue_tree/index
interfaces/index
utilities/index
hardware/index
Expand Down
14 changes: 14 additions & 0 deletions docs/src/pyrogue_tree/index.rst
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

49 changes: 49 additions & 0 deletions docs/src/pyrogue_tree/node/command/index.rst
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 docs/src/pyrogue_tree/node/command/local_command/index.rst
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 docs/src/pyrogue_tree/node/command/remote_command/index.rst
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 ...

42 changes: 42 additions & 0 deletions docs/src/pyrogue_tree/node/device/index.rst
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 ...

17 changes: 17 additions & 0 deletions docs/src/pyrogue_tree/node/index.rst
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

42 changes: 42 additions & 0 deletions docs/src/pyrogue_tree/node/root/index.rst
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 ...

49 changes: 49 additions & 0 deletions docs/src/pyrogue_tree/node/variable/index.rst
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 docs/src/pyrogue_tree/node/variable/link_variable/index.rst
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 docs/src/pyrogue_tree/node/variable/local_variable/index.rst
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 ...

Loading

0 comments on commit 455967d

Please sign in to comment.