• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
CDP Studio logo

CDP Studio

The no-code and full-code software development tool for distributed control systems and HMI

  • Doc
  • Why CDP
    • Software developers
    • Automation engineers
    • Managers
  • Products
    • Automation Designer
    • HMI Designer
    • Maritime HMIs
  • Services
  • Use cases
  • Pricing
  • Try CDP

CDP Studio Documentation

  • Framework - CDP2SQL
  • LogManagerFactory
  • 5.0.0

LogManagerFactory Class

(LogManager::LogManagerFactory)

The LogManagerFactory creates readers and writers supporting CDPCompactDatastore format. More...

Header: #include <LogManagerFactory>
  • List of all members, including inherited members

Public Functions

virtual ~LogManagerFactory()
virtual CDPCompactLogReader *CreateReader(const ConnectionInfo &connectionInfo)
virtual CDPCompactLogReader *CreateReader(const std::vector<CDPCompactLogReader *> &readers)

Detailed Description

The LogManagerFactory creates readers and writers supporting CDPCompactDatastore format.

Methods throw std::exception to indicate failures.

Member Function Documentation

[virtual] LogManagerFactory::~LogManagerFactory()

Destroys the instance of LogManagerFactory. The destructor is virtual.

[virtual] CDPCompactLogReader *LogManagerFactory::CreateReader(const ConnectionInfo &connectionInfo)

Creates a reader that allows to access data logged by CDPCompactDatastore.

The connectionInfo must specify datastore name. If the datastore is a composite datastore split into multiple files (e.g. 'log.db', 'log0.db', 'log1.db'...), then it is sufficient to only specify the main file (in this example 'log.db').

Throws an LogManager::Exceptions::UnsupportedDBType exception if the database is not compatible with this reader or an std::exception to indicate other failures.

[virtual] CDPCompactLogReader *LogManagerFactory::CreateReader(const std::vector<CDPCompactLogReader *> &readers)

Used to read from multiple logs where readers in the beginning of the list contain most recent data (with higher resolution) and in the end lower resolution long term log.

Can be used with the CDPCompactDatastore KeepHistory functionality. The parameter readers takes ownership of the pointers. Throws an std::exception if the list is empty.

The content of this document is confidential information not to be published without the consent of CDP Technologies AS.

CDP Technologies AS, www.cdpstudio.com

Get started with CDP Studio today

Let us help you take your great ideas and turn them into the products your customer will love.

Try CDP Studio for free
Why CDP Studio?

CDP Technologies AS
Hundsværgata 8,
P.O. Box 144
6001 Ålesund, Norway

Tel: +47 990 80 900
E-mail: info@cdptech.com

Company

About CDP

Contact us

Services

Partners

Blog

Developers

Get started

User manuals

Support

Document download

Release notes

My account

Follow CDP

  • LinkedIn
  • YouTube
  • GitHub

© Copyright 2025 CDP Technologies. Privacy and cookie policy.

Return to top