Questions tagged [odb]

ODB is an open-source, cross-platform, and cross-database object-relational mapping (ORM) system for C++.

ODB is an open-source, cross-platform, and cross-database object-relational mapping (ORM) system for C++. It allows you to persist C++ objects to a relational database without having to deal with tables, columns, or SQL and without manually writing any mapping code. ODB supports MySQL, SQLite, PostgreSQL, Oracle, and Microsoft SQL Server relational databases as well as C++98/03 and C++11 language standards. It also comes with optional profiles for Boost and Qt which allow you to seamlessly use value types, containers, and smart pointers from these libraries in your persistent C++ classes.

82 questions
2
votes
2 answers

Executing stored procedure with ODB ORM

There is a procedure stored on Microsoft SQL Server. Procedure can return a value. How can I execute stored procedure from MS SQL Server Database with ODB ORM and fetch value returned by this procedure?
2
votes
1 answer

odb/pgsql/version.hxx no such file or directory

I'm trying to learn how to use C++ and ODB following this tutorial: http://www.codesynthesis.com/products/odb/doc/manual.xhtml#2 I've created a Person.hxx file where there is the declaration of class Person as persistent, then I've got thre files…
SagittariusA
  • 5,289
  • 15
  • 73
  • 127
1
vote
0 answers

How to convert from GDSII to Gerber or ODB++ for PCB printing?

I've generated a very simple GDS file describing a PCB file (layer 0: board cutout, 1: topside metallization, 2: vias) using gdspy. I'm trying to get this PCB printed at Sunstone; however, they require gerber or ODB++ files. I'm new to PCB printing,…
Phionx
  • 41
  • 2
1
vote
2 answers

Abaqus python scripting: How to add a vector field output with their resultant values in an odb

My code below could easily create a field output of my custom vector from the 'dataComponentsList' variable. But it merely displayed the components of vectors in the 'symbol plot' of Abaqus, as distinct from the default Abaqus field outputs which…
Shayan
  • 21
  • 2
1
vote
0 answers

SQL Server 2008 R2 linkedServer to Oracle 12c

We have integrated system , what we are doing in the integration process is our invoices data is going to insert in the oracle ebs R12 (oracle database 12c) through SQL Server linked Server using ODBC driver but when this process starts on the sql…
JZDBA
  • 11
  • 1
1
vote
0 answers

How to extract stress within a certain bounding geometry in an Abaqus ODB using scripting?

I wish to be able to extract stress (S11) and its corresponding element's z-coordinates only in a certain bounding cylinder. My ODB files are relatively big and it would be quite helpful if I could limit the number of elements I have to compute. I…
1
vote
1 answer

Export node-red flow to script

I'm looking ways to export Node-Red flow to script. This way I could make some ODBC integrations for my software and export them to one script. Is this possible? If not, is there any scaling issues to use one node-red with differnt ODBC databases?
user257980
  • 1,059
  • 2
  • 15
  • 31
1
vote
1 answer

C++ and ODB: Creating a vector of objects

I have an object called TimelineItem which has a datafield called linked_items_ which holds a vector of type TimelineItem. This is to represent items in a timeline that are linked to the original item (repeated items). I'm having a hard time getting…
oreid
  • 1,336
  • 2
  • 13
  • 25
1
vote
1 answer

How to read averaged nodal stress from abaqus odb file using python script?

I know how to read element or element node stress value (unaveraged) using python script. field = stressField.getSubset(region=topCenter,position=INTEGRATION_POINT, elementType = 'CAX4') But i want averaged stress values at nodes. FYI, my odb does…
1
vote
2 answers

Read stresses 'S' of Abaqus results with python

Good evening, i have done a script for getting a model and to generate results. I've tried to write in the same script a way for getting to read the values of stresses but python says : " File "C:/Users/TFG", line 250, in
1
vote
1 answer

How to add code generation step in CMake build process only for changed header files?

I'm writing C++ application using ODB which requires code generation. I'm using the following CMake script. CMAKE_MINIMUM_REQUIRED(VERSION 2.8) CMAKE_POLICY(SET CMP0015 NEW) PROJECT(odb_poc) INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR}/src/ …
bobeff
  • 3,543
  • 3
  • 34
  • 62
1
vote
1 answer

Can I pass a const object to db.persist in ODB?

I'm trying out ODB ORM and I have to stick to an interface, so I need to take a const object and persist it. I'm not sure if the ODB API allows to persist a const object, because some part seems prepared for that, but it doesn't work. I am receiving…
jmmut
  • 884
  • 9
  • 19
1
vote
1 answer

ODB: create a db success but db file no exist

I try to new a ODB dataBase, however, sometimes, xxx.db is not exist even I new db success. With the code under, it can't catch exception however,it can enter if(!_file) string dbFile =…
yeyimilk
  • 614
  • 2
  • 8
  • 18
1
vote
1 answer

Unable to create a new step in the odb file in Aabqus Explicit

I am unable to create a new step in the odb file of a dynamic explicit analysis. I am using the following commands to create a new step: odbWrite=openOdb(path="C:\blahblah.odb" , readOnly =…
user5827667
  • 37
  • 3
  • 7
1
vote
0 answers

libodb2.4 did not support container in container, is there any work around?

I have a project that needs to use C++ and Qt. And it also need persist object in filesystem. I found libodb-2.4 is a perfect solution. But it can not support the value that container in container directly, But the data struct in project must be…
firemiles
  • 23
  • 6